/* ============================================
   PREMIUM AUTH PAGES — ai-invoicemaker.com
   ============================================ */

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8fafc;
    position: relative;
    overflow: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Animated gradient background */
body::before {
    content: '';
    position: fixed;
    top: -50%;
    right: -30%;
    width: 800px;
    height: 800px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(37, 99, 235, 0.06) 0%, transparent 60%);
    animation: auth-float 15s ease-in-out infinite;
    pointer-events: none;
}

body::after {
    content: '';
    position: fixed;
    bottom: -40%;
    left: -20%;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(245, 158, 11, 0.04) 0%, transparent 60%);
    animation: auth-float 12s ease-in-out infinite reverse;
    pointer-events: none;
}

@keyframes auth-float {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(30px, -40px) scale(1.05); }
    66% { transform: translate(-20px, 20px) scale(0.95); }
}

/* Auth Container */
.auth-container {
    background: white;
    padding: 2.5rem;
    border-radius: 20px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06), 0 1px 4px rgba(0, 0, 0, 0.04);
    border: 1px solid rgba(226, 232, 240, 0.6);
    width: 100%;
    max-width: 420px;
    position: relative;
    z-index: 1;
    animation: auth-enter 0.6s cubic-bezier(0.16, 1, 0.3, 1) both;
}

@keyframes auth-enter {
    from {
        opacity: 0;
        transform: translateY(24px) scale(0.97);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Brand */
.auth-brand {
    text-align: center;
    margin-bottom: 2rem;
}

.auth-brand a {
    text-decoration: none;
    color: #2563eb;
    font-size: 1.35rem;
    font-weight: 900;
    letter-spacing: -0.5px;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.auth-brand a i {
    font-size: 1.15rem;
}

h2 {
    text-align: center;
    color: #0f172a;
    margin-bottom: 0.5rem;
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.auth-subtitle {
    text-align: center;
    color: #64748b;
    font-size: 0.9rem;
    margin-bottom: 1.75rem;
}

/* Form Groups */
.form-group {
    margin-bottom: 1.25rem;
    position: relative;
}

label {
    display: block;
    margin-bottom: 0.4rem;
    color: #334155;
    font-weight: 600;
    font-size: 0.85rem;
}

input {
    width: 100%;
    padding: 0.75rem 0.9rem;
    border: 1.5px solid #e2e8f0;
    border-radius: 10px;
    font-family: inherit;
    font-size: 0.9rem;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    background: #f8fafc;
    color: #0f172a;
}

input::placeholder {
    color: #94a3b8;
}

input:focus {
    outline: none;
    border-color: #2563eb;
    background: white;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.08);
}

/* Submit Button */
button {
    width: 100%;
    padding: 0.8rem;
    background: linear-gradient(135deg, #2563eb 0%, #3b82f6 100%);
    color: white;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    font-size: 0.95rem;
    font-weight: 600;
    font-family: inherit;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.25);
    margin-top: 0.5rem;
    position: relative;
    overflow: hidden;
}

button::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(120deg, transparent, rgba(255,255,255,0.15), transparent);
    transition: left 0.5s ease;
}

button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(37, 99, 235, 0.35);
}

button:hover::after {
    left: 100%;
}

button:active {
    transform: translateY(0);
}

/* Alerts */
.alert {
    padding: 0.75rem 1rem;
    margin-bottom: 1.25rem;
    border-radius: 10px;
    font-size: 0.85rem;
    font-weight: 500;
    animation: alert-enter 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes alert-enter {
    from { opacity: 0; transform: translateY(-8px); }
    to { opacity: 1; transform: translateY(0); }
}

.alert-error,
.alert:not(.alert-success) {
    background: rgba(239, 68, 68, 0.08);
    color: #dc2626;
    border: 1px solid rgba(239, 68, 68, 0.15);
}

.alert-success {
    background: rgba(16, 185, 129, 0.08);
    color: #059669;
    border: 1px solid rgba(16, 185, 129, 0.15);
}

.alert-success a {
    color: #059669;
    font-weight: 600;
}

/* Link */
.link {
    text-align: center;
    margin-top: 1.5rem;
    font-size: 0.88rem;
    color: #64748b;
}

.link a {
    color: #2563eb;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s;
}

.link a:hover {
    color: #1e40af;
}

/* Divider */
.auth-divider {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin: 1.5rem 0;
    color: #94a3b8;
    font-size: 0.8rem;
}

.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: #e2e8f0;
}

/* Responsive */
@media (max-width: 480px) {
    .auth-container {
        margin: 1rem;
        padding: 2rem 1.5rem;
    }
}
