/* Auth Card Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.offcanvas-start {
    width: var(--sidebar-width);
    background-color: var(--sidebar-bg);
    box-shadow: 4px 0 12px rgba(0, 0, 0, 0.1);
}

.offcanvas-header {
    padding: 1rem 1.5rem;
    background-color: var(--sidebar-bg);
}

.offcanvas-body {
    padding: 0;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.container {
    margin: 5% auto;
}

#verify-otp-btn {
    cursor: pointer;
    padding: 8px 16px;
    border-radius: 8px;
    outline: none;
    /* background: transparent; */
    border: none;
    background-color: #419af4;
    color: white;
    margin-top: 3%;
}

.container img {
    display: flex;
    width: 360px;
    height: auto;
    margin-bottom: 20px;
    margin: 0 auto;
}

.auth-card {
    max-width: 400px;
    margin: 80px auto 120px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.12);
    overflow: hidden;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.auth-card-header {
    display: flex;
    border-bottom: 1.5px solid #e2e8f0;
    /* subtle separator */
}

.auth-toggle {
    flex: 1;
    padding: 16px 0;
    background-color: #f0f4f8;
    border: none;
    cursor: pointer;
    font-weight: 600;
    font-size: 1rem;
    color: #374151;
    /* dark gray */
    transition: background-color 0.3s, color 0.3s;
}

.auth-toggle:hover:not(.active) {
    background-color: #e0e7ff;
}

.auth-toggle.active {
    background-color: #419af4;
    color: #fff;
    font-weight: 700;
}

.auth-card-body {
    padding: 25px 30px 30px;
}

.auth-form {
    display: none;
}

.auth-form.active {
    display: block;
}

.form-group {
    margin-bottom: 18px;
}

.form-group label {
    display: block;
    margin-bottom: 6px;
    color: #374151;
    font-weight: 600;
    font-size: 0.95rem;
}

.form-group input {
    width: 100%;
    padding: 11px 14px;
    border: 1.5px solid #d1d5db;
    border-radius: 6px;
    font-size: 1rem;
    color: #1f2937;
    transition: border-color 0.3s;
}

.form-group input:focus {
    outline: none;
    border-color: #3b82f6;
    /* blue focus */
    box-shadow: 0 0 4px #419af4;
}

.btn {
    width: 100%;
    background-color: #419af4;
    border: none;
    padding: 12px;
    font-size: 1.1rem;
    font-weight: 700;
    color: #fff;
    cursor: pointer;
    border-radius: 6px;
    transition: background-color 0.3s, box-shadow 0.3s;
    user-select: none;
}

.btn:hover:not(:disabled) {
    background-color: #2563eb;
    box-shadow: 0 6px 10px rgba(37, 99, 235, 0.4);
}

.btn:disabled {
    background-color: #a5b4fc;
    cursor: not-allowed;
    box-shadow: none;
}


/* Password wrapper & toggle */

.password-wrapper {
    position: relative;
}

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

.toggle-password {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    user-select: none;
    font-size: 20px;
    color: #6b7280;
    /* gray */
    transition: color 0.3s;
}

.toggle-password:hover {
    color: #2563eb;
}


/* Mobile input with OTP button */

.form-group.mb-3 {
    position: relative;
    max-width: 320px;
}

.form-group.mb-3 {
    position: relative;
    max-width: 320px;
}

#signup-phone {
    padding-right: 130px;
    /* Make room for button */
    height: 38px;
    /* Set consistent height */
    border-radius: 8px;
    /* Rounded corners */
    box-sizing: border-box;
}

#send-otp-btn {
    position: absolute;
    right: 0;
    bottom: 0;
    height: 38px;
    padding: 0 14px;
    font-size: 0.9rem;
    font-weight: 600;
    border: 1.5px solid #3b82f6;
    background-color: #fff;
    color: #3b82f6;
    border-radius: 0 8px 8px 0;
    cursor: pointer;
    transition: background-color 0.25s, color 0.25s, box-shadow 0.25s;
    user-select: none;
    box-sizing: border-box;
}

#send-otp-btn:hover:not(:disabled) {
    background-color: #3b82f6;
    color: #fff;
    box-shadow: 0 4px 8px rgba(59, 130, 246, 0.5);
}

#send-otp-btn:disabled {
    background-color: #a5b4fc;
    border-color: #a5b4fc;
    color: #e0e7ff;
    cursor: not-allowed;
    box-shadow: none;
}


/* OTP timer text below input */

#otp-timer {
    font-size: 0.85rem;
    color: #6b7280;
    margin-top: 6px;
}


/* OTP code input style */

#otp-section {
    max-width: 320px;
}


/* Responsive tweaks */

@media (max-width: 420px) {
    .auth-card {
        margin: 40px 15px 80px;
        max-width: 100%;
    }

    .form-group.mb-3 {
        max-width: 100%;
    }

    #send-otp-btn {
        height: 32px;
        padding: 0 12px;
        font-size: 0.85rem;
    }
}