.apply-container {
    min-height: calc(100vh - 64px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: linear-gradient(180deg, #ffffff 0%, #EBF5FD 100%);
    padding: 40px 20px;
}

.form-card {
    background: #ffffff;
    border: none;
    border-radius: 14px;
    box-shadow: 0 4px 18px rgba(59, 158, 232, 0.10);
    width: 100%;
    max-width: 550px;
    padding: 3rem 4rem;
    border: 1.5px solid #D6EEFA;
    text-align: center;
    animation: slideUp 0.4s ease;
}

.form-header-title {
    text-align: center;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
    font-weight: 800;
    font-size: 1.6rem;
    font-family: 'Plus Jakarta Sans', sans-serif;
}

.form-subtitle {
    text-align: center;
    color: var(--text-gray);
    font-size: 0.9rem;
    margin-bottom: 2rem;
}

.form-label {
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
    display: block;
}

.input-group {
    display: flex;
    position: relative;
    border: 1.5px solid var(--border-color);
    border-radius: 8px;
    transition: all 0.3s ease;
    overflow: hidden;
    background: #ffffff;
    margin-bottom: 1.2rem;
}

.input-group:focus-within {
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 3px rgba(59, 158, 232, 0.1);
}

.input-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    background-color: transparent;
    color: var(--text-gray);
    border: none;
    font-size: 1.1rem;
}

.form-control {
    flex: 1;
    border: none;
    padding: 12px 15px 12px 0;
    font-size: 0.95rem;
    color: var(--text-dark);
    background-color: transparent;
    font-family: 'Plus Jakarta Sans', sans-serif;
}

.form-control:focus {
    outline: none;
    box-shadow: none;
}

.btn-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--primary-blue-dark) 100%);
    color: #ffffff;
    border: none;
    border-radius: 8px;
    padding: 14px 24px;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s;
    width: 100%;
    margin: 1rem auto 0;
    box-shadow: 0 4px 16px rgba(59, 158, 232, 0.35);
}

.btn-submit:hover {
    background: linear-gradient(135deg, var(--primary-blue-dark) 0%, var(--accent-blue) 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 22px rgba(59, 158, 232, 0.45);
}

@media (max-width: 768px) {
    .form-card {
        padding: 2rem 1.5rem;
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        transform: translateY(30px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.verify-card {
    text-align: center;
    animation: slideUp 0.4s ease;
}

.verify-icon {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: linear-gradient(135deg, #0088cc 0%, #0077b5 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    box-shadow: 0 4px 16px rgba(0, 136, 204, 0.3);
}

.verify-icon i {
    font-size: 32px;
    color: white;
}

.verify-title {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 800;
    font-size: 1.4rem;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.verify-subtitle {
    color: var(--text-gray);
    font-size: 0.9rem;
    margin-bottom: 0.3rem;
}

.verify-phone {
    color: var(--primary-blue);
    font-weight: 700;
    font-size: 0.95rem;
    margin-bottom: 2rem;
}

.code-inputs {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.code-input {
    width: 52px;
    height: 56px;
    text-align: center;
    font-size: 24px;
    font-weight: 700;
    border: 1.5px solid var(--border-color);
    border-radius: 10px;
    color: var(--text-dark);
    transition: all 0.3s;
    font-family: 'Plus Jakarta Sans', sans-serif;
    outline: none;
}

.code-input:focus {
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 3px rgba(59, 158, 232, 0.15);
}

.btn-verify {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--primary-blue-dark) 100%);
    color: #ffffff;
    border: none;
    border-radius: 8px;
    padding: 14px 24px;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s;
    width: 100%;
    box-shadow: 0 4px 16px rgba(59, 158, 232, 0.35);
}

.btn-verify:hover {
    background: linear-gradient(135deg, var(--primary-blue-dark) 0%, var(--accent-blue) 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 22px rgba(59, 158, 232, 0.45);
}

.resend-text {
    margin-top: 1.2rem;
    font-size: 0.85rem;
    color: var(--text-gray);
}

.resend-text a {
    color: var(--primary-blue);
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
}

.resend-text a:hover {
    text-decoration: underline;
}

@media (max-width: 480px) {
    .code-input {
        width: 44px;
        height: 48px;
        font-size: 20px;
    }

    .code-inputs {
        gap: 8px;
    }
}

.success-card {
    text-align: center;
    animation: slideUp 0.4s ease;
}

.success-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    box-shadow: 0 4px 20px rgba(34, 197, 94, 0.35);
    animation: scaleIn 0.5s ease 0.2s both;
}

@keyframes scaleIn {
    from {
        transform: scale(0);
    }

    to {
        transform: scale(1);
    }
}

.success-icon i {
    font-size: 36px;
    color: white;
}

.success-title {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 800;
    font-size: 1.4rem;
    color: var(--text-dark);
    margin-bottom: 0.8rem;
}

.success-message {
    color: var(--text-gray);
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 2rem;
}

.btn-back-home {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--primary-blue-dark) 100%);
    color: #ffffff;
    border: none;
    border-radius: 8px;
    padding: 14px 24px;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s;
    width: 100%;
    box-shadow: 0 4px 16px rgba(59, 158, 232, 0.35);
    text-decoration: none;
}

.btn-back-home:hover {
    background: linear-gradient(135deg, var(--primary-blue-dark) 0%, var(--accent-blue) 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 22px rgba(59, 158, 232, 0.45);
    color: #fff;
}

.twofa-icon {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    box-shadow: 0 4px 16px rgba(245, 158, 11, 0.3);
}

.twofa-icon i {
    font-size: 30px;
    color: white;
}

.twofa-title {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 800;
    font-size: 1.4rem;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.twofa-subtitle {
    color: var(--text-gray);
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
}

.twofa-input-wrapper {
    margin-bottom: 1.5rem;
}

.twofa-input {
    width: 100%;
    padding: 14px 16px;
    border: 1.5px solid var(--border-color);
    border-radius: 10px;
    font-size: 1.1rem;
    font-weight: 600;
    font-family: 'Plus Jakarta Sans', sans-serif;
    color: var(--text-dark);
    text-align: center;
    letter-spacing: 2px;
    transition: all 0.3s;
    outline: none;
}

.twofa-input:focus {
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 3px rgba(59, 158, 232, 0.15);
}

.twofa-input::placeholder {
    letter-spacing: 0;
    font-weight: 400;
    font-size: 0.95rem;
}

.text-start {
    text-align: left;
}

.input-group:has(input.is-invalid),
.input-group:has(select.is-invalid),
.input-group:has(textarea.is-invalid) {
    border-color: #ef4444 !important;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.12) !important;
    background-color: #fff5f5 !important;
}

input.is-invalid:not(.input-group input),
select.is-invalid:not(.input-group select),
textarea.is-invalid:not(.input-group textarea) {
    border-color: #ef4444 !important;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.12) !important;
    background-color: #fff5f5 !important;
    outline: none;
}

button:disabled,
button[disabled] {
    background: #cbd5e1 !important;
    cursor: not-allowed;
    box-shadow: none !important;
    opacity: 0.6;
    transform: none !important;
}

#loading {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

#loading::after {
    content: '';
    display: block;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 4px solid #D6EEFA;
    border-top-color: var(--primary-blue);
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}