/* login.css - AthenaCore
   Creative, Light, Geometric Theme with Company Colors (Red, Blue, Yellow)
*/

:root {
    /* Palette */
    --ac-blue: #3b82f6;
    --ac-red: #ef4444;
    --ac-yellow: #f59e0b;
    
    --ac-bg: #f8fafc;
    --ac-surface: #ffffff;
    --ac-text: #0f172a;
    --ac-text-sub: #64748b;
    --ac-border: #e2e8f0;
    
    --ac-font: "Space Grotesk", system-ui, sans-serif;
    --ac-radius: 24px;
    --ac-shadow: 0 20px 40px -10px rgba(0,0,0,0.08);
}

body {
    margin: 0;
    background-color: var(--ac-bg);
    color: var(--ac-text);
    font-family: var(--ac-font);
    min-height: 100vh;
    display: grid;
    place-items: center;
    overflow-x: hidden;
}

/* Geometric Background */
.login-bg {
    position: fixed;
    inset: 0;
    z-index: -1;
    background-image: 
        radial-gradient(circle at 0% 0%, rgba(59, 130, 246, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 100% 0%, rgba(239, 68, 68, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 50% 100%, rgba(245, 158, 11, 0.08) 0%, transparent 50%);
}

/* Decorative Shapes */
.shape {
    position: absolute;
    z-index: -1;
    opacity: 0.6;
}
.shape-1 {
    top: 10%;
    left: 5%;
    width: 100px;
    height: 100px;
    border: 4px solid var(--ac-blue);
    border-radius: 50%;
    animation: float 8s ease-in-out infinite;
}
.shape-2 {
    bottom: 15%;
    right: 10%;
    width: 80px;
    height: 80px;
    background: var(--ac-yellow);
    clip-path: polygon(50% 0%, 0% 100%, 100% 100%);
    animation: float 10s ease-in-out infinite reverse;
}
.shape-3 {
    top: 20%;
    right: 15%;
    width: 60px;
    height: 60px;
    background: var(--ac-red);
    border-radius: 12px;
    transform: rotate(45deg);
    animation: float 12s ease-in-out infinite 1s;
}

@keyframes float {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(10deg); }
}

/* Main Container */
.login-shell {
    width: 100%;
    max-width: 900px;
    padding: 2rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

/* Left Side: Brand/Welcome */
.login-welcome {
    position: relative;
}

.login-brand {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2.5rem;
}

.login-brand img {
    width: 140px;
    height: 140px;
    object-fit: contain;
    filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.1));
}

.login-brand__mark {
    width: 48px;
    height: 48px;
    background: var(--ac-text);
    color: white;
    border-radius: 12px;
    display: grid;
    place-items: center;
    font-weight: 700;
    font-size: 1.25rem;
}

.login-brand__title {
    font-size: 2rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.login-hero-text {
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    letter-spacing: -0.03em;
}

.login-hero-text span {
    color: var(--ac-blue);
}

.login-sub {
    font-size: 1.1rem;
    color: var(--ac-text-sub);
    line-height: 1.6;
    max-width: 400px;
}

/* Right Side: Creative Card */
.login-card {
    background: var(--ac-surface);
    padding: 2.5rem;
    border-radius: var(--ac-radius);
    box-shadow: var(--ac-shadow);
    position: relative;
    border: 1px solid var(--ac-border);
}

/* Color accents on card corners */
.login-card::before {
    content: '';
    position: absolute;
    top: -2px; left: -2px;
    width: 40px; height: 40px;
    border-top: 4px solid var(--ac-red);
    border-left: 4px solid var(--ac-red);
    border-radius: 24px 0 0 0;
}
.login-card::after {
    content: '';
    position: absolute;
    bottom: -2px; right: -2px;
    width: 40px; height: 40px;
    border-bottom: 4px solid var(--ac-blue);
    border-right: 4px solid var(--ac-blue);
    border-radius: 0 0 24px 0;
}

.login-header {
    margin-bottom: 2rem;
}

.login-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 0 0.5rem;
}

/* Creative Form Fields */
.login-actions {
    display: grid;
    gap: 1.5rem;
}

.login-field {
    position: relative;
}

.login-input {
    width: 100%;
    padding: 1rem 1rem 1rem 0;
    font-family: inherit;
    font-size: 1rem;
    color: var(--ac-text);
    background: transparent;
    border: none;
    border-bottom: 2px solid var(--ac-border);
    border-radius: 0;
    transition: all 0.3s ease;
}

.login-input:focus {
    outline: none;
    border-bottom-color: var(--ac-blue);
    padding-left: 1rem; /* Shift text on focus */
    background: rgba(59, 130, 246, 0.03);
}

.login-label {
    position: absolute;
    top: 1rem;
    left: 0;
    font-size: 1rem;
    color: var(--ac-text-sub);
    pointer-events: none;
    transition: all 0.3s ease;
}

/* Floating Label Logic */
.login-input:focus ~ .login-label,
.login-input:not(:placeholder-shown) ~ .login-label {
    top: -0.75rem;
    font-size: 0.75rem;
    color: var(--ac-blue);
    font-weight: 600;
}

.login-validation {
    display: block;
    font-size: 0.8rem;
    color: var(--ac-red);
    margin-top: 0.4rem;
    min-height: 1.2em;
}

.login-links {
    display: flex;
    justify-content: flex-end;
    margin-top: -0.75rem;
}

.login-link {
    color: var(--ac-blue);
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
}

.login-link:hover {
    text-decoration: underline;
}

/* Checkbox */
.login-check {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
    user-select: none;
}

.login-check input {
    appearance: none;
    width: 20px;
    height: 20px;
    border: 2px solid var(--ac-border);
    border-radius: 6px;
    transition: all 0.2s ease;
    position: relative;
}

.login-check input:checked {
    background: var(--ac-yellow);
    border-color: var(--ac-yellow);
}

.login-check input:checked::after {
    content: '';
    position: absolute;
    left: 6px; top: 2px;
    width: 4px; height: 8px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.login-check span {
    font-size: 0.9rem;
    color: var(--ac-text-sub);
}

/* Button */
.login-btn {
    width: 100%;
    padding: 1rem;
    border: none;
    border-radius: 12px;
    background: var(--ac-text);
    color: white;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    margin-top: 1rem;
}

.login-btn:hover {
    background: var(--ac-blue);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px -5px rgba(59, 130, 246, 0.4);
}

.login-alert {
    background: rgba(239, 68, 68, 0.1);
    border-left: 4px solid var(--ac-red);
    color: var(--ac-red);
    padding: 1rem;
    border-radius: 8px;
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.login-alert--success {
    background: rgba(34, 197, 94, 0.1);
    border-left-color: #22c55e;
    color: #15803d;
}

.login-note {
    margin: 0 0 1.5rem;
    color: var(--ac-text-sub);
    font-size: 0.95rem;
    line-height: 1.6;
}

.login-summary {
    margin: 0;
    padding-left: 1rem;
    color: var(--ac-red);
    font-size: 0.9rem;
}

.login-footer {
    margin-top: 2rem;
    text-align: center;
    font-size: 0.85rem;
    color: var(--ac-text-sub);
}

/* Responsive */
@media (max-width: 900px) {
    .login-shell {
        grid-template-columns: 1fr;
        gap: 2rem;
        max-width: 480px;
    }
    
    .login-welcome {
        text-align: center;
    }
    
    .login-brand {
        justify-content: center;
    }
    
    .login-hero-text {
        font-size: 2.5rem;
    }
    
    .login-sub {
        margin: 0 auto;
    }
    
    .shape { display: none; }
}
