/* Login Page Styles - OTP Based Authentication */

.login-container {
    max-width: 420px;
    margin: 40px auto;
    padding: 0 16px;
}

.login-wrapper {
    background: white;
    border-radius: 8px;
    padding: 32px 24px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.login-title {
    font-size: 28px;
    font-weight: 600;
    color: #212121;
    margin-bottom: 8px;
}

.login-subtitle {
    font-size: 14px;
    color: #666;
    margin-bottom: 24px;
    line-height: 1.5;
}

.auth-form {
    margin-top: 24px;
}

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

.form-input {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    font-size: 15px;
    color: #212121;
    transition: border-color 0.2s, box-shadow 0.2s;
    box-sizing: border-box;
}

.form-input:focus {
    outline: none;
    border-color: var(--mobitez-orange, #f57224);
    box-shadow: 0 0 0 3px rgba(245, 114, 36, 0.1);
}

.form-input::placeholder {
    color: #999;
}

.form-hint {
    font-size: 12px;
    color: #888;
    margin-top: 6px;
}

.form-error {
    display: none;
    color: #e53935;
    font-size: 12px;
    margin-top: 6px;
    font-weight: 500;
}

/* Mobile Number Input */
.mobile-input-wrapper {
    display: flex;
    align-items: center;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    overflow: hidden;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.mobile-input-wrapper:focus-within {
    border-color: var(--mobitez-orange, #f57224);
    box-shadow: 0 0 0 3px rgba(245, 114, 36, 0.1);
}

.country-code {
    padding: 14px 12px;
    background: #f5f5f5;
    color: #333;
    font-weight: 600;
    font-size: 15px;
    border-right: 1px solid #e0e0e0;
    user-select: none;
}

.mobile-input {
    border: none !important;
    border-radius: 0 !important;
    flex: 1;
    box-shadow: none !important;
}

.mobile-input:focus {
    box-shadow: none !important;
}

/* OTP Input Styles */
.otp-input-container {
    display: flex;
    justify-content: space-between;
    gap: 10px;
}

.otp-digit {
    width: 48px;
    height: 56px;
    text-align: center;
    font-size: 24px;
    font-weight: 600;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    transition: all 0.2s;
    color: #212121;
}

.otp-digit:focus {
    outline: none;
    border-color: var(--mobitez-orange, #f57224);
    box-shadow: 0 0 0 3px rgba(245, 114, 36, 0.15);
}

.otp-digit:not(:placeholder-shown) {
    border-color: var(--mobitez-orange, #f57224);
    background: rgba(245, 114, 36, 0.05);
}

/* OTP Timer */
.otp-timer {
    text-align: center;
    margin: 16px 0;
    font-size: 14px;
    color: #666;
}

.otp-timer strong {
    color: var(--mobitez-orange, #f57224);
    font-weight: 600;
}

/* Resend OTP */
.resend-otp {
    text-align: center;
    margin-top: 20px;
    font-size: 14px;
    color: #666;
}

.resend-btn {
    background: none;
    border: none;
    color: var(--mobitez-purple, #5c2d91);
    font-weight: 600;
    cursor: pointer;
    padding: 4px 8px;
    transition: opacity 0.2s;
}

.resend-btn:hover:not(:disabled) {
    text-decoration: underline;
}

.resend-btn:disabled {
    color: #999;
    cursor: not-allowed;
}

/* Back Button */
.back-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: none;
    border: none;
    color: #666;
    font-size: 14px;
    cursor: pointer;
    padding: 8px 0;
    margin-bottom: 16px;
    transition: color 0.2s;
}

.back-btn:hover {
    color: #212121;
}

.back-btn i {
    font-size: 12px;
}

/* Action Info (for signup page) */
.action-info {
    text-align: center;
    padding: 10px 16px;
    border-radius: 6px;
    font-size: 13px;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.action-login {
    background: #e3f2fd;
    color: #1565c0;
}

.action-register {
    background: #e8f5e9;
    color: #2e7d32;
}

/* Form Note */
.form-note {
    text-align: center;
    font-size: 12px;
    color: #888;
    margin-top: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.form-note i {
    color: #aaa;
}

/* Form Options */
.form-options {
    display: flex;
    justify-content: flex-start;
    align-items: flex-start;
    margin-bottom: 20px;
    font-size: 14px;
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    cursor: pointer;
    color: #444;
    line-height: 1.4;
}

.checkbox-label input {
    margin-right: 10px;
    margin-top: 2px;
    cursor: pointer;
    accent-color: var(--mobitez-orange, #f57224);
}

.checkbox-label a {
    color: var(--mobitez-purple, #5c2d91);
    text-decoration: none;
}

.checkbox-label a:hover {
    text-decoration: underline;
}

/* Buttons */
.btn-primary {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, var(--mobitez-orange, #f57224) 0%, #e55a00 100%);
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-primary:hover:not(:disabled) {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(245, 114, 36, 0.35);
}

.btn-primary:active:not(:disabled) {
    transform: translateY(0);
}

.btn-primary:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.btn-secondary {
    width: 100%;
    padding: 14px;
    background: white;
    color: var(--mobitez-purple, #5c2d91);
    border: 2px solid var(--mobitez-purple, #5c2d91);
    border-radius: 4px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

.btn-secondary:hover {
    background: #f8f4fc;
}

.btn-verify {
    margin-top: 8px;
}

/* Divider */
.form-divider {
    text-align: center;
    margin: 24px 0;
    position: relative;
}

.form-divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: #e0e0e0;
}

.form-divider span {
    background: white;
    padding: 0 16px;
    color: #999;
    font-size: 13px;
    position: relative;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Signup Link */
.signup-link {
    text-align: center;
    margin-top: 28px;
    padding-top: 20px;
    border-top: 1px solid #eee;
    font-size: 14px;
    color: #666;
}

.signup-link a {
    color: var(--mobitez-purple, #5c2d91);
    text-decoration: none;
    font-weight: 600;
}

.signup-link a:hover {
    text-decoration: underline;
}

/* Notifications */
#notificationContainer {
    position: fixed;
    top: 80px;
    right: 20px;
    z-index: 10001;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.notification {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 20px;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    animation: slideIn 0.3s ease;
    min-width: 280px;
    font-size: 14px;
    font-weight: 500;
}

.notification-success {
    background: #4caf50;
    color: white;
}

.notification-error {
    background: #e53935;
    color: white;
}

.notification-info {
    background: #2196f3;
    color: white;
}

.notification.fade-out {
    animation: slideOut 0.3s ease forwards;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOut {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(100%);
        opacity: 0;
    }
}

/* Responsive */
@media (max-width: 768px) {
    .login-container {
        margin: 20px auto;
        padding: 0 12px;
    }
    
    .login-wrapper {
        padding: 24px 16px;
    }
    
    .login-title {
        font-size: 24px;
    }
    
    .otp-digit {
        width: 42px;
        height: 50px;
        font-size: 20px;
    }
    
    .otp-input-container {
        gap: 6px;
    }
    
    #notificationContainer {
        left: 12px;
        right: 12px;
    }
    
    .notification {
        min-width: auto;
    }
}

@media (max-width: 380px) {
    .otp-digit {
        width: 36px;
        height: 44px;
        font-size: 18px;
    }
    
    .otp-input-container {
        gap: 4px;
    }
}
