/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f5f7fa;
    color: #333;
    line-height: 1.6;
}

.container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 20px;
}

.auth-card {
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    padding: 30px;
    width: 100%;
    max-width: 450px;
    transition: all 0.3s ease;
}

h1 {
    color: #2c3e50;
    text-align: center;
    margin-bottom: 30px;
    font-size: 24px;
}

h2 {
    color: #2c3e50;
    text-align: center;
    margin-bottom: 25px;
    font-size: 20px;
}

.auth-form {
    display: none;
}

.auth-form.active {
    display: block;
}

.form-group {
    margin-bottom: 20px;
}

label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #2c3e50;
}

input {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 16px;
    transition: border 0.3s;
}

input:focus {
    outline: none;
    border-color: #3498db;
}

.password-group {
    position: relative;
}

.password-input {
    position: relative;
}

.toggle-password {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: #7f8c8d;
}

.btn-primary {
    width: 100%;
    padding: 12px;
    background-color: #3498db;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.3s;
    margin-top: 10px;
}

.btn-primary:hover {
    background-color: #2980b9;
}

.btn-secondary {
    width: 100%;
    padding: 12px;
    background-color: #95a5a6;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.3s;
    margin-top: 10px;
}

.btn-secondary:hover {
    background-color: #7f8c8d;
}

.btn-text {
    background: none;
    border: none;
    color: #3498db;
    cursor: pointer;
    font-size: 14px;
    text-decoration: underline;
    padding: 5px;
}

.btn-text:hover {
    color: #2980b9;
}

.auth-links {
    margin-top: 20px;
    text-align: center;
}

.auth-links a {
    color: #3498db;
    text-decoration: none;
    font-size: 14px;
    display: block;
    margin: 8px 0;
}

.auth-links a:hover {
    text-decoration: underline;
}

.status-message {
    margin-top: 20px;
    padding: 10px;
    border-radius: 6px;
    text-align: center;
    display: none;
}

.error {
    background-color: #fdecea;
    color: #d32f2f;
    display: block;
}

.success {
    background-color: #e8f5e9;
    color: #2e7d32;
    display: block;
}

.warning {
    background-color: #fff8e1;
    color: #f57c00;
    display: block;
}

.info {
    background-color: #e3f2fd;
    color: #1976d2;
    display: block;
}

/* Account Type Selection Styles */
.account-type-options {
    display: grid;
    grid-template-columns: 1fr;
    gap: 15px;
    margin-bottom: 25px;
}

.account-type-card {
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    padding: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}

.account-type-card:hover {
    border-color: #3498db;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.account-type-card.selected {
    border-color: #3498db;
    background-color: #f8fafc;
}

.account-icon {
    font-size: 40px;
    color: #3498db;
    margin-bottom: 15px;
}

.account-type-card h3 {
    color: #2c3e50;
    margin-bottom: 10px;
    font-size: 18px;
}

.account-type-card p {
    color: #7f8c8d;
    margin-bottom: 15px;
    font-size: 14px;
}

.account-features {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.account-features span {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 13px;
    color: #5a6c7d;
}

.account-features i {
    color: #27ae60;
    font-size: 12px;
}

/* Account Type Preview */
.account-type-preview {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 15px;
    background-color: #f8fafc;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
}

.account-type-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
    color: #2c3e50;
}

.account-type-badge.shipper {
    color: #3498db;
}

.account-type-badge.delivery {
    color: #e74c3c;
}

.account-type-badge i {
    font-size: 16px;
}

.form-actions {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

.form-actions .btn-secondary {
    margin-top: 0;
}

/* Responsive Design */
@media (min-width: 768px) {
    .account-type-options {
        grid-template-columns: 1fr 1fr;
    }

    .auth-card {
        max-width: 500px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 10px;
    }

    .auth-card {
        padding: 20px;
    }

    .account-type-card {
        padding: 15px;
    }

    .account-icon {
        font-size: 32px;
    }
}