.gradient-form {
    background-color: #eee;
}

.gradient-custom-2 {
    /* Professional VMS theme - Navy blue to teal gradient */
    background: #1e3a8a;

    /* Chrome 10-25, Safari 5.1-6 */
    background: -webkit-linear-gradient(135deg, #1e3a8a 0%, #0f766e 50%, #059669 100%);

    /* W3C, IE 10+/ Edge, Firefox 16+, Chrome 26+, Opera 12+, Safari 7+ */
    background: linear-gradient(135deg, #1e3a8a 0%, #0f766e 50%, #059669 100%);
}

.card {
    border: none;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    max-width: 100%;
}

.card-body {
    padding: 2rem;
}

.text-center img {
    width: 120px;
    margin-bottom: 1rem;
}

.card-title {
    color: #495057;
    font-weight: 600;
    margin-bottom: 0.5rem;
    font-size: 1.5rem;
}

.text-muted {
    color: #6c757d !important;
    font-size: 0.9rem;
}

.form-step {
    display: none;
}

.form-step.active {
    display: block;
}

.form-label {
    font-weight: 500;
    color: #495057;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.input-group-text {
    background: #f8f9fa;
    border: 1px solid #ced4da;
    color: #6c757d;
    font-size: 0.9rem;
}

.form-control {
    border-left: none;
    padding: 0.75rem;
    font-size: 0.9rem;
}

.form-control:focus {
    border-color: #059669;
    box-shadow: 0 0 0 0.2rem rgba(5, 150, 105, 0.25);
}

.input-group:focus-within .input-group-text {
    border-color: #059669;
}

.verification-code-input:focus {
    border-color: #059669;
    box-shadow: 0 0 0 0.2rem rgba(5, 150, 105, 0.25);
}

.verification-code-input {
    font-size: 20px;
    font-weight: bold;
    text-align: center;
    letter-spacing: 6px;
    border: 1px solid #ced4da;
    padding: 0.75rem;
    font-family: 'Courier New', monospace;
    border-radius: 8px;
    font-size: 1.1rem;
}

.verification-code-input:focus {
    border-color: #007bff;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

.btn {
    border-radius: 8px;
    padding: 0.75rem 1rem;
    font-weight: 500;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.btn-primary {
    background: #007bff;
    border: none;
}

.btn-primary:hover {
    background: #0056b3;
    transform: translateY(-1px);
}

.btn-link {
    color: #007bff;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
}

.btn-link:hover {
    color: #0056b3;
}

.alert {
    border-radius: 8px;
    border: none;
    padding: 0.75rem 1rem;
    font-size: 0.9rem;
}

.alert-danger {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.alert-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.text-primary {
    color: #059669 !important;
}

.btn-primary {
    background: linear-gradient(135deg, #1e3a8a, #0f766e);
    border: none;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #0f766e, #059669);
    transform: translateY(-1px);
}

.btn-link {
    color: #059669;
}

.btn-link:hover {
    color: #0f766e;
}

/* Tab navigation for mobile */
.nav-tabs {
    border-bottom: none;
    justify-content: center;
    margin-bottom: 1rem;
}

.nav-tabs .nav-link {
    border: none;
    color: #6c757d;
    font-weight: 500;
    padding: 8px 16px;
    border-radius: 8px;
    transition: all 0.3s ease;
    font-size: 0.85rem;
}

.nav-tabs .nav-link.active {
    background: linear-gradient(135deg, #1e3a8a, #0f766e);
    color: #fff;
    border-color: #0f766e;
}

/* Desktop layout */
@media (min-width: 768px) {
    .gradient-form {
        min-height: 80vh;
        display: flex;
        align-items: center;
    }

    .container {
        max-width: 1200px;
    }

    .card {
        min-height: 600px;
        max-height: 700px;
    }

    .gradient-custom-2 {
        min-height: 600px;
        max-height: 700px;
        display: flex;
        align-items: center;
    }
}

@media (min-width: 769px) {
    .gradient-custom-2 {
        border-top-right-radius: .3rem;
        border-bottom-right-radius: .3rem;
    }
}

@media (max-width: 767px) {
    .gradient-form {
        padding: 1rem 0;
    }

    .card-body {
        padding: 1.5rem 1rem;
    }

    .text-center img {
        width: 80px;
    }

    .card-title {
        font-size: 1.3rem;
    }

    .fas.fa-users {
        font-size: 2rem;
    }

    .verification-code-input {
        font-size: 1rem;
        letter-spacing: 4px;
    }

    .btn {
        padding: 0.625rem 0.875rem;
        font-size: 0.85rem;
    }

    /* Hide the right panel on mobile */
    .col-lg-6.d-flex.align-items-center.gradient-custom-2 {
        display: none;
    }

    .col-lg-6 .card-body {
        padding: 1rem;
    }
}