/*
 * SmartPOS - Authentication Pages Styles
 * Login, Forgot Password, Reset Password
 */

:root {
    --primary-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --primary-color: #667eea;
    --secondary-color: #764ba2;
}

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

body {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    padding: 20px;
    margin: 0;
}

.auth-container {
    width: 100%;
    max-width: 460px;
}

.auth-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: slideUp 0.5s ease;
}

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

.auth-header {
    text-align: center;
    margin-bottom: 30px;
}

.auth-logo {
    width: 80px;
    height: 80px;
    background: var(--primary-gradient);
    border-radius: 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
    transition: transform 0.3s ease;
}

.auth-logo:hover {
    transform: scale(1.05);
}

.auth-logo i {
    font-size: 40px;
    color: white;
}

.auth-header h3 {
    color: #333;
    font-weight: 700;
    margin-bottom: 5px;
}

.auth-header p {
    color: #666;
    font-size: 14px;
}

.form-floating {
    margin-bottom: 15px;
}

.form-floating input {
    border-radius: 10px;
    border: 2px solid #e0e0e0;
    padding: 15px;
    height: auto;
    font-size: 15px;
    transition: all 0.3s;
}

.form-floating input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.15);
}

.form-floating label {
    padding: 15px;
}

.form-floating input.is-invalid {
    border-color: #dc3545;
}

.btn-auth {
    background: var(--primary-gradient);
    border: none;
    border-radius: 10px;
    padding: 14px;
    font-size: 16px;
    font-weight: 600;
    color: white;
    width: 100%;
    transition: all 0.3s;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.btn-auth:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.4);
}

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

.btn-auth:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.form-check-input:checked {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.error-message {
    background: #fee;
    color: #c00;
    padding: 12px 16px;
    border-radius: 10px;
    margin-bottom: 15px;
    font-size: 14px;
    text-align: center;
    border-left: 4px solid #c00;
    animation: shake 0.4s ease;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

.success-message {
    background: #efe;
    color: #0a0;
    padding: 15px;
    border-radius: 10px;
    margin-bottom: 15px;
    font-size: 14px;
    text-align: center;
    border-left: 4px solid #0a0;
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.auth-link {
    text-align: center;
    margin-top: 20px;
}

.auth-link a {
    color: var(--primary-color);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s;
}

.auth-link a:hover {
    color: var(--secondary-color);
    text-decoration: underline;
}

.spinner-border {
    width: 20px;
    height: 20px;
    margin-right: 5px;
}

.auth-footer {
    color: rgba(255, 255, 255, 0.8);
    font-size: 13px;
    margin-top: 15px;
    text-align: center;
}

/* Password strength bar */
.password-strength {
    height: 4px;
    border-radius: 2px;
    margin-top: 8px;
    transition: all 0.3s;
    background: transparent;
}

/* Info box */
.info-box {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 12px 16px;
    font-size: 13px;
}

.info-box i {
    color: var(--primary-color);
}

/* Responsive */
@media (max-width: 480px) {
    .auth-card {
        padding: 25px;
    }
    
    .auth-logo {
        width: 60px;
        height: 60px;
    }
    
    .auth-logo i {
        font-size: 30px;
    }
    
    .auth-header h3 {
        font-size: 20px;
    }
}
