* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Poppins", sans-serif;
    background-color: #f5f5f5;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Brand Logo inside Card styling */
.auth-brand {
    text-align: center;
    margin-bottom: 24px;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    height: 60px;
}

.auth-logo-img {
    height: 110px;
    object-fit: contain;
    transform: scale(1.6);
}

@keyframes pulseLogo {

    0%,
    100% {
        transform: scale(1.4);
        opacity: 0.85;
    }

    50% {
        transform: scale(1.55);
        opacity: 1;
    }
}

/* Header/Navbar */
.navbar {
    background: #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

.navbar-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.navbar-logo {
    font-size: 24px;
    font-weight: 700;
    color: #1a73e8;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
}

.navbar-logo i {
    color: #34a853;
}

.navbar-links {
    display: flex;
    gap: 30px;
    align-items: center;
}

.navbar-links a {
    color: #666;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s;
}

.navbar-links a:hover {
    color: #1a73e8;
}

/* Main Container */
.auth-wrapper {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
}

.auth-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    width: 100%;
    max-width: 1000px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    overflow: hidden;
}

.auth-left {
    background: linear-gradient(135deg, #121358 0%, #36ADA3 100%);
    color: white;
    padding: 60px 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.auth-left h2 {
    font-size: 32px;
    margin-bottom: 20px;
    font-weight: 700;
}

.auth-left p {
    font-size: 14px;
    line-height: 1.6;
    opacity: 0.9;
    margin-bottom: 30px;
}

.auth-left-features {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.feature-item {
    display: flex;
    gap: 15px;
}

.feature-item i {
    font-size: 20px;
    flex-shrink: 0;
}

.feature-item-text {
    font-size: 13px;
}

.feature-item-text strong {
    display: block;
    margin-bottom: 5px;
}

.auth-right {
    padding: 60px 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.auth-right h3 {
    font-size: 28px;
    color: #1a1a1a;
    margin-bottom: 10px;
    font-weight: 700;
}

.auth-right-subtitle {
    color: #999;
    font-size: 14px;
    margin-bottom: 30px;
}

.alert {
    padding: 12px 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 13px;
    display: flex;
    gap: 10px;
    align-items: center;
}

.alert-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.alert-danger {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.form-group {
    margin-bottom: 16px;
    position: relative;
}

.password-wrapper {
    position: relative;
}

.password-wrapper input {
    padding-right: 44px;
}

.password-toggle {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    border: none;
    background: transparent;
    color: #666;
    cursor: pointer;
    font-size: 16px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.password-toggle:focus {
    outline: none;
}

.form-group label {
    display: block;
    color: #1a1a1a;
    font-size: 13px;
    font-weight: 500;
    margin-bottom: 6px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 11px 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 13px;
    transition: all 0.3s;
    font-family: "Inter", sans-serif;
}

.form-group textarea {
    resize: vertical;
    min-height: 70px;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #36ADA3;
    box-shadow: 0 0 0 3px rgba(54, 173, 163, 0.15);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #bbb;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.form-row .form-group {
    margin-bottom: 0;
}

.error {
    color: #dc3545;
    font-size: 12px;
    margin-top: 4px;
    display: block;
}

.auth-btn {
    width: 100%;
    padding: 12px 15px;
    background: linear-gradient(135deg, #121358 0%, #36ADA3 100%);
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    margin-top: 10px;
    margin-bottom: 20px;
}

.auth-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(54, 173, 163, 0.4);
}

.auth-btn:active {
    transform: translateY(0);
}

.auth-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none !important;
}

.auth-divider {
    text-align: center;
    margin: 15px 0;
    position: relative;
    font-size: 13px;
    color: #999;
}

.auth-divider::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    right: 0;
    height: 1px;
    background: #ddd;
}

.auth-divider span {
    background: #fff;
    padding: 0 10px;
    position: relative;
}

.social-login {
    display: flex;
    gap: 12px;
    margin-bottom: 20px;
}

.social-btn {
    flex: 1;
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    background: #fff;
    color: #333;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.social-btn:hover {
    background: #f5f5f5;
    border-color: #bbb;
}

.social-btn i {
    font-size: 14px;
}

.auth-footer {
    text-align: center;
    font-size: 13px;
    color: #666;
    margin-top: 15px;
}

.auth-footer a {
    color: #36ADA3;
    text-decoration: none;
    font-weight: 500;
}

.auth-footer a:hover {
    text-decoration: underline;
}

.terms-info {
    font-size: 11px;
    color: #999;
    margin-top: 15px;
    line-height: 1.5;
}

.terms-info a {
    color: #36ADA3;
    text-decoration: none;
}

/* Footer */
footer {
    background: #fff;
    border-top: 1px solid #eee;
    padding: 30px 20px;
    text-align: center;
    color: #999;
    font-size: 12px;
}

footer a {
    color: #666;
    text-decoration: none;
    margin: 0 10px;
}

footer a:hover {
    color: #36ADA3;
}

/* Responsive */
@media (max-width: 768px) {
    body {
        background: linear-gradient(135deg, #121358 0%, #36ADA3 100%) !important;
        background-attachment: fixed !important;
    }

    .auth-wrapper {
        background: transparent !important;
        padding: 20px 16px;
        min-height: calc(100vh - 100px);
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .auth-container {
        grid-template-columns: 1fr;
        border-radius: 20px;
        box-shadow: 0 15px 35px rgba(18, 19, 88, 0.25);
        border: 1px solid rgba(255, 255, 255, 0.15);
        max-width: 425px;
        background: rgba(255, 255, 255, 0.96);
    }

    .auth-left {
        display: none;
    }

    .auth-right {
        padding: 35px 25px !important;
    }

    .auth-right h3 {
        font-size: 22px;
        text-align: center;
        color: #121358;
        font-weight: 700;
    }

    .auth-right-subtitle {
        text-align: center;
        margin-bottom: 24px;
        font-size: 13px;
        color: #666;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    footer {
        background: transparent !important;
        border: none !important;
        color: rgba(255, 255, 255, 0.75) !important;
        padding: 24px 16px !important;
        margin-top: auto;
    }

    footer a {
        color: rgba(255, 255, 255, 0.9) !important;
        transition: opacity 0.2s;
    }

    footer a:hover {
        opacity: 0.8;
        color: #fff !important;
    }

    footer p {
        color: rgba(255, 255, 255, 0.6) !important;
    }
}

/* OTP Verification Styles */
.otp-input-group {
    display: flex;
    gap: 10px;
    align-items: center;
    width: 100%;
}

.otp-input-group input {
    flex: 1;
    min-width: 0;
    width: 100%;
}

.otp-btn {
    white-space: nowrap;
    height: 40px;
    padding: 0 1.25rem;
    border-radius: 6px;
    border: none;
    background: #5d5e5d;
    color: white;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-family: "Inter", sans-serif;
    font-size: 13px;
}

@media (max-width: 480px) {
    .otp-input-group {
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
    }
    
    .otp-btn {
        width: 100%;
        height: 40px;
    }
}

.otp-btn:hover {
    background: #20ba5a;
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.3);
}

.otp-btn:disabled {
    background: #cbd5e1;
    color: #94a3b8;
    cursor: not-allowed;
    box-shadow: none !important;
}