/* assets/css/auth-premium.css */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

:root {
    /* Palette matching Proposal System */
    --primary: #2563eb;       /* Professional Blue */
    --primary-dark: #1e40af;
    --primary-light: #60a5fa;
    --secondary: #64748b;     /* Slate */
    --bg-dark: #0f172a;       /* Dark background for modern feel */
    --bg-card: rgba(255, 255, 255, 0.95);
    --glass-border: rgba(255, 255, 255, 0.2);
    --text-main: #1e293b;
    --text-light: #64748b;
    --danger: #ef4444;
    --success: #10b981;
    --warning: #f59e0b;
    
    --radius-lg: 16px;
    --radius-md: 10px;
    --shadow-lg: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    --shadow-input: 0 1px 2px 0 rgba(0, 0, 0, 0.05);

    --touch-min: 48px; /* Accessibility */
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-main);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow-x: hidden;
    position: relative;
    -webkit-font-smoothing: antialiased;
}

/* --- Ambient Aurora Animation --- */
.ambient-glow {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: -1;
    overflow: hidden;
    background: radial-gradient(circle at center, #1e293b 0%, #0f172a 100%);
}

.ambient-glow::before,
.ambient-glow::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.15;
    animation: aurora 20s ease infinite;
}

.ambient-glow::before {
    width: 60vw;
    height: 60vw;
    background: radial-gradient(circle, var(--primary) 0%, transparent 70%);
    top: -20%;
    right: -20%;
    animation-delay: 0s;
}

.ambient-glow::after {
    width: 50vw;
    height: 50vw;
    background: radial-gradient(circle, var(--warning) 0%, transparent 70%);
    bottom: -10%;
    left: -10%;
    animation-delay: -10s;
}

@keyframes aurora {
    0%, 100% { transform: translate(0, 0) scale(1); opacity: 0.15; }
    33% { transform: translate(30px, -30px) scale(1.1); opacity: 0.2; }
    66% { transform: translate(-20px, 20px) scale(0.9); opacity: 0.1; }
}

/* --- Login Container --- */
.auth-container {
    width: 100%;
    max-width: 440px;
    padding: 20px;
    z-index: 10;
}

.auth-card {
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    padding: 3rem 2.5rem;
    text-align: center;
    animation: slideUp 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes slideUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* --- Header --- */
.auth-header {
    margin-bottom: 2.5rem;
}

.auth-header h1 {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--text-main);
    letter-spacing: -0.025em;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
}

.auth-header p {
    font-size: 0.95rem;
    color: var(--text-light);
    font-weight: 500;
}

/* --- Forms --- */
.form-group {
    margin-bottom: 1.5rem;
    text-align: left;
}

.form-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-main);
    margin-bottom: 0.5rem;
}

.input-group {
    position: relative;
    display: flex;
    align-items: center;
}

.form-control {
    width: 100%;
    height: var(--touch-min);
    padding: 0 1rem;
    font-size: 1rem;
    border: 1px solid #cbd5e1; /* Slate 300 */
    border-radius: var(--radius-md);
    background: #f8fafc; /* Slate 50 */
    color: var(--text-main);
    transition: all 0.2s ease;
    font-family: inherit;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary);
    background: white;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

/* Password Toggle */
.password-toggle {
    position: absolute;
    right: 0;
    top: 0;
    height: 100%;
    width: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--text-light);
    border: none;
    background: none;
    border-top-right-radius: var(--radius-md);
    border-bottom-right-radius: var(--radius-md);
}

.password-toggle:hover {
    color: var(--primary);
}

/* --- Buttons --- */
.btn-primary {
    width: 100%;
    height: var(--touch-min);
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    border: none;
    border-radius: var(--radius-md);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.1s, box-shadow 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    box-shadow: 0 4px 6px -1px rgba(37, 99, 235, 0.2);
}

.btn-primary:hover {
    box-shadow: 0 10px 15px -3px rgba(37, 99, 235, 0.3);
    transform: translateY(-1px);
}

.btn-primary:active {
    transform: translateY(0);
}

/* --- Alerts --- */
.alert {
    padding: 1rem;
    border-radius: var(--radius-md);
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
    font-weight: 500;
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    text-align: left;
    line-height: 1.5;
}

.alert-danger {
    background: #fef2f2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

.alert-success {
    background: #f0fdf4;
    color: #166534;
    border: 1px solid #bbf7d0;
}

.alert-warning {
    background: #fffbeb;
    color: #92400e;
    border: 1px solid #fde68a;
}

/* --- Links --- */
.auth-footer {
    margin-top: 2rem;
    font-size: 0.9rem;
    color: var(--text-light);
}

.link-secondary {
    color: var(--secondary);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}

.link-secondary:hover {
    color: var(--primary);
    text-decoration: underline;
}

/* --- Icons --- */
.icon-logo {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--warning), #ea580c);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 800;
    font-size: 14px;
    box-shadow: 0 4px 6px -1px rgba(234, 88, 12, 0.3);
}
