﻿/* ==========================================================================
   wwwroot/css/app.pages/log.in.css
   ========================================================================== */

/* =========================
   VARIABLES
========================= */
:root {
    --black: #0a0a0a;
    --torq: #3DC1AE;
    --main-bg: #f8f8f8;
    --white: #ffffff;
    --header-color: #111111;
    --accent: #22c59f;
    --text-light: #666666;
    --border-light: #eaeaea;
    /* Text Sizes */
    --fs-xs: 0.75rem; /* 12px */
    --fs-sm: 0.875rem; /* 14px */
    --fs-base: 1rem; /* 16px */
    --fs-lg: 1.125rem; /* 18px */
    --fs-xl: 1.25rem; /* 20px */
    --fs-2xl: 1.35rem; /* h2 size */
    --fs-3xl: 1.875rem;
    --fs-4xl: 2.25rem;
    --fs-display: clamp(2rem, 4vw, 3.2rem); /* Main heading */
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background: var(--main-bg);
    color: var(--black);
    font-family: "Inter", system-ui, sans-serif;
}

/* =========================
   BUTTONS
========================= */
.back-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: var(--header-color);
    font-size: var(--fs-lg);
    font-weight: 500;
    margin-bottom: 24px;
    transition: all 0.2s ease;
}

    .back-btn:hover {
        color: var(--accent);
        transform: translateX(-3px);
    }

/* =========================
   PAGE LAYOUT
========================= */
.back-to-home {
    padding: 10px;
}

.login-page {
    max-width: 800px;
    margin: 0 auto;
    padding: 60px 24px;
}

.login-card {
    background: var(--white);
    border: 1px solid var(--border-light);
    border-radius: 24px;
    padding: 48px;
}

.login-body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f4f7f6;
    display: flex;
    justify-content: center;
    align-items: center;
    height: auto;
    margin: 0;
}

/* =========================
   TYPOGRAPHY
========================= */
.eyebrow {
    color: var(--accent);
    font-size: var(--fs-sm);
    font-weight: 600;
    letter-spacing: 0.08em;
    margin-bottom: 12px;
}

.login-card h1 {
    font-size: var(--fs-4xl);
    color: var(--header-color);
    margin-bottom: 16px;
    line-height: 1.1;
}

.login-intro {
    color: var(--text-light);
    font-size: var(--fs-lg);
    margin-bottom: 40px;
    max-width: 600px;
}

.company-name {
    font-size: var(--fs-4xl);
    font-weight: 600;
    color: var(--accent);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 12px;
    text-align: center;
    padding-bottom: 20px;
}

/* =========================
   FORM (SCOPED TO CONTAINERS TO PREVENT GLOBAL CORRUPTION)
========================= */
.login-container {
    background-color: #ffffff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 380px;
}

    /* 🟢 FIXED: Now only targets the h2 header INSIDE the login box */
    .login-container h2 {
        text-align: center;
        margin-bottom: 24px;
        color: #333333;
    }

.form-group {
    margin-bottom: 20px;
}

/* 🟢 FIXED: Now only targets labels INSIDE the login box */
.login-container label {
    display: block;
    margin-bottom: 8px;
    color: #666666;
    font-size: 14px;
}

input[type="text"],
input[type="password"] {
    width: 100%;
    padding: 12px;
    border: 1px solid #cccccc;
    border-radius: 4px;
    box-sizing: border-box;
    font-size: 14px;
}

    input[type="text"]:focus,
    input[type="password"]:focus {
        border-color: #4a90e2;
        outline: none;
    }

.form-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    font-size: 13px;
}

.remember-me a {
    color: var(--black);
    text-decoration: none;
}

    .remember-me a:hover {
        text-decoration: underline;
        color: var(--torq);
    }

.forgot-password a {
    color: var(--black);
    text-decoration: none;
}

    .forgot-password a:hover {
        text-decoration: underline;
        color: var(--torq);
    }

/* 🟢 FIXED: Now only targets buttons INSIDE the login box */
.login-container button {
    width: 100%;
    padding: 12px;
    background-color: var(--black);
    border: none;
    border-radius: 4px;
    color: white;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.2s;
}

    /* 🟢 FIXED: Scoped button hover element override step */
    .login-container button:hover {
        background-color: var(--torq);
    }

.register-link {
    text-align: center;
    margin-top: 20px;
    font-size: 14px;
    color: var(--black);
}

    .register-link a {
        color: var(--black);
        text-decoration: none;
        font-weight: bold;
    }

        .register-link a:hover {
            text-decoration: underline;
            color: var(--torq);
        }

/* =========================
   MOBILE RESPONSIVENESS RULES
========================= */
@media (max-width: 768px) {
    .form-grid {
        grid-template-columns: 1fr;
    }

    .support-card {
        padding: 28px;
    }

    .btn-primary {
        width: 100%;
    }
}