/* Authentication Styles (Login & Signup) */

.auth-body {
    background: #F8FAFC;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    font-family: 'Moto Sans Bengali', 'Inter', sans-serif;
    margin: 0;
    padding: 0;
}

.auth-header {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: var(--primary);
    color: white;
    min-height: 35vh;
}

.auth-logo {
    width: 80px;
    height: 80px;
    background: white;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.auth-logo .material-icons-round {
    font-size: 48px;
    color: var(--primary);
}

.auth-header h1 {
    font-size: 24px;
    font-weight: 700;
    margin: 0 0 8px 0;
}

.auth-header p {
    font-size: 14px;
    opacity: 0.9;
    margin: 0;
    text-align: center;
}

.auth-container {
    background: white;
    border-radius: 24px 24px 0 0;
    padding: 32px 24px;
    flex: 2;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.05);
    margin-top: -24px;
    position: relative;
    overflow: hidden;
}

/* Step Container */
.auth-step {
    display: none;
    animation: slideInRight 0.3s ease forwards;
}

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

.auth-step.slide-in-left {
    animation: slideInLeft 0.3s ease forwards;
}

@keyframes slideInRight {
    from {
        transform: translateX(50px);
        opacity: 0;
    }

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

@keyframes slideInLeft {
    from {
        transform: translateX(-50px);
        opacity: 0;
    }

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

.step-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-main);
    margin: 0 0 8px 0;
}

.step-desc {
    font-size: 14px;
    color: var(--text-muted);
    margin: 0 0 24px 0;
    line-height: 1.5;
}

/* Form Styles */
.auth-form-group {
    margin-bottom: 20px;
    position: relative;
}

.auth-form-group label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-main);
    margin-bottom: 8px;
}

.auth-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.auth-input-wrapper .icon {
    position: absolute;
    left: 16px;
    color: #94A3B8;
    font-size: 20px;
}

.auth-input {
    width: 100%;
    padding: 14px 16px 14px 44px;
    border: 1px solid #E2E8F0;
    border-radius: 12px;
    font-size: 15px;
    font-family: inherit;
    outline: none;
    transition: all 0.2s;
    background: #F8FAFC;
}

.auth-input:focus {
    border-color: var(--primary);
    background: white;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1);
}

.auth-input::placeholder {
    color: #94A3B8;
}

/* Password Toggle */
.toggle-password {
    position: absolute;
    right: 16px;
    background: none;
    border: none;
    color: #94A3B8;
    padding: 0;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* OTP Boxes */
.otp-container {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 24px;
}

.otp-box {
    width: 100%;
    height: 56px;
    border: 1px solid #E2E8F0;
    border-radius: 12px;
    background: #F8FAFC;
    font-size: 24px;
    font-weight: 700;
    text-align: center;
    outline: none;
    transition: all 0.2s;
    padding: 0;
}

.otp-box:focus {
    border-color: var(--primary);
    background: white;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1);
}

.otp-box.error {
    border-color: #EF4444;
    animation: shake 0.4s;
}

@keyframes shake {

    0%,
    100% {
        transform: translateX(0);
    }

    25% {
        transform: translateX(-5px);
    }

    50% {
        transform: translateX(5px);
    }

    75% {
        transform: translateX(-5px);
    }
}

/* Call to Action Button */
.btn-auth {
    width: 100%;
    padding: 16px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 14px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 12px;
}

.btn-auth:active {
    transform: scale(0.98);
}

.btn-auth:disabled {
    background: #CBD5E1;
    cursor: not-allowed;
    transform: none;
}

/* Helper Text / Back Link */
.auth-footer {
    text-align: center;
    margin-top: 24px;
    font-size: 14px;
    color: var(--text-muted);
}

.auth-link {
    color: var(--primary);
    font-weight: 600;
    text-decoration: none;
    background: none;
    border: none;
    padding: 0;
    font-size: inherit;
    font-family: inherit;
    cursor: pointer;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: #64748B;
    font-weight: 500;
    text-decoration: none;
    margin-bottom: 20px;
    cursor: pointer;
    background: none;
    border: none;
    padding: 0;
    font-size: 14px;
    font-family: inherit;
    transition: color 0.2s;
}

.back-link:active {
    color: var(--text-main);
}

.back-link .material-icons-round {
    font-size: 18px;
}