/* Assets: auth.css — Neobrutalism Auth Pages */
@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;600;700&display=swap');

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

:root {
    --bg: #FAF9F4;
    --bg-cream: #F8F6F2;
    --text: #0D0D0D;
    --text-secondary: #666666;
    --border: #000000;
    --primary: #EC3C77;
    --primary-hover: #D6306A;
    --accent-blue: #3D99F5;
    --accent-green: #17CF73;
    --accent-yellow: #F6DB55;
    --accent-pink-tint: rgba(236, 60, 119, 0.1);
    --accent-blue-tint: rgba(61, 153, 245, 0.1);
    --accent-green-tint: rgba(23, 207, 115, 0.1);
    --white: #FFFFFF;
    --gray-light: #CCCCCC;
    --shadow-sm: #000000 2px 2px 0px 0px;
    --shadow-md: #000000 4px 4px 0px 0px;
    --shadow-lg: #000000 6px 6px 0px 0px;
    --radius: 6px;
    --radius-lg: 12px;
}

body {
    background: var(--bg);
    font-family: 'Space Grotesk', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue', sans-serif;
    color: var(--text);
    min-height: 100vh;
    overflow-x: hidden;
    line-height: 1.6;
    font-size: 16px;
    font-weight: 400;
}

a {
    text-decoration: none;
    color: inherit;
}

/* ===== LAYOUT ===== */
.auth-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 100vh;
}

/* ===== LEFT PANEL (Visual) ===== */
.auth-visual {
    background: var(--text);
    color: var(--white);
    padding: 48px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    overflow: hidden;
}

/* Geometric decorations */
.auth-visual::before {
    content: '';
    position: absolute;
    top: -30px;
    right: -30px;
    width: 120px;
    height: 120px;
    background: var(--primary);
    border: 2px solid rgba(255,255,255,0.2);
    border-radius: 50%;
    opacity: 0.3;
}

.auth-visual::after {
    content: '';
    position: absolute;
    bottom: 60px;
    left: -20px;
    width: 60px;
    height: 60px;
    background: var(--accent-yellow);
    border: 2px solid rgba(255,255,255,0.2);
    transform: rotate(45deg);
    opacity: 0.25;
}

.auth-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    font-size: 18px;
    letter-spacing: -0.02em;
    color: var(--white);
    position: relative;
    z-index: 1;
}

.auth-logo-dot {
    width: 12px;
    height: 12px;
    background: var(--primary);
    border: 2px solid rgba(255,255,255,0.4);
    border-radius: 50%;
}

.auth-visual-content {
    position: relative;
    z-index: 1;
}

.auth-visual-title {
    font-size: 36px;
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.02em;
    margin-bottom: 16px;
}

.auth-visual-desc {
    font-size: 15px;
    color: rgba(255,255,255,0.6);
    line-height: 1.6;
    max-width: 360px;
}

.auth-visual-features {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 32px;
}

.auth-feature-item {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 14px;
    font-weight: 500;
    color: rgba(255,255,255,0.8);
}

.auth-feature-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
}

.auth-feature-dot--pink { background: var(--primary); }
.auth-feature-dot--blue { background: var(--accent-blue); }
.auth-feature-dot--green { background: var(--accent-green); }

.auth-visual-footer {
    font-size: 12px;
    font-weight: 700;
    color: rgba(255,255,255,0.4);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    position: relative;
    z-index: 1;
}

/* ===== RIGHT PANEL (Form) ===== */
.auth-form-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 48px;
}

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

/* Header */
.auth-header {
    margin-bottom: 32px;
}

.auth-title {
    font-size: 28px;
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 8px;
    color: var(--text);
}

.auth-subtitle {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.5;
}

/* ===== FORM ELEMENTS ===== */
.input-group {
    margin-bottom: 16px;
}

.input-label {
    display: block;
    font-size: 13px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 6px;
    letter-spacing: 0.01em;
}

.input-field {
    width: 100%;
    height: 44px;
    padding: 12px 16px;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 14px;
    font-weight: 400;
    color: var(--text);
    background: var(--white);
    border: 2px solid var(--border);
    border-radius: var(--radius);
    box-shadow: none;
    outline: none;
    transition: all 0.15s ease;
}

.input-field::placeholder {
    color: #999999;
}

.input-field:focus {
    border-color: var(--accent-blue);
    box-shadow: 0px 0px 0px 2px rgba(61, 153, 245, 0.2);
}

/* ===== BUTTON ===== */
.btn-auth {
    width: 100%;
    height: 44px;
    padding: 8px 16px;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 14px;
    font-weight: 700;
    color: var(--white);
    background: var(--primary);
    border: 2px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    cursor: pointer;
    transition: all 0.1s ease;
    margin-bottom: 20px;
}

.btn-auth:hover {
    background: var(--primary-hover);
    box-shadow: var(--shadow-md);
    transform: translate(-2px, -2px);
}

.btn-auth:active {
    box-shadow: #000000 1px 1px 0px 0px;
    transform: translate(1px, 1px);
}

.btn-auth:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
    box-shadow: var(--shadow-sm);
}

/* ===== MESSAGES ===== */
.auth-message {
    display: none;
    padding: 12px 16px;
    border-radius: var(--radius);
    font-size: 13px;
    font-weight: 500;
    margin-bottom: 16px;
    border: 2px solid var(--border);
}

.auth-message.error {
    background: rgba(236, 60, 119, 0.08);
    color: var(--primary);
    border-color: var(--primary);
}

.auth-message.success {
    background: var(--accent-green-tint);
    color: #065F46;
    border-color: var(--accent-green);
}

/* ===== FOOTER LINK ===== */
.auth-footer {
    text-align: center;
    font-size: 14px;
    color: var(--text-secondary);
}

.auth-link {
    color: var(--primary);
    font-weight: 700;
    transition: opacity 0.15s ease;
}

.auth-link:hover {
    opacity: 0.8;
}

/* ===== BACK BUTTON ===== */
.auth-back {
    margin-top: 24px;
    text-align: center;
}

.btn-back {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 13px;
    font-weight: 700;
    color: var(--text);
    background: var(--bg-cream);
    border: 2px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    transition: all 0.1s ease;
}

.btn-back:hover {
    background: var(--white);
    box-shadow: var(--shadow-md);
    transform: translate(-2px, -2px);
}

.btn-back:active {
    box-shadow: #000000 1px 1px 0px 0px;
    transform: translate(1px, 1px);
}

/* ===== DIVIDER ===== */
.auth-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 20px 0;
}

.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    height: 2px;
    background: var(--border);
    opacity: 0.1;
}

.auth-divider span {
    font-size: 12px;
    font-weight: 700;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* ===== ANIMATIONS ===== */
.auth-form-container {
    animation: fadeUp 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

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

.auth-visual-content {
    animation: fadeIn 0.6s ease 0.2s forwards;
    opacity: 0;
}

@keyframes fadeIn {
    to { opacity: 1; }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
    .auth-visual {
        padding: 36px;
    }

    .auth-visual-title {
        font-size: 28px;
    }

    .auth-form-wrapper {
        padding: 36px;
    }
}

@media (max-width: 768px) {
    .auth-container {
        grid-template-columns: 1fr;
        grid-template-rows: auto 1fr;
    }

    .auth-visual {
        padding: 24px;
        min-height: auto;
    }

    .auth-visual-content {
        display: none;
    }

    .auth-visual {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }

    .auth-visual-footer {
        display: none;
    }

    .auth-visual::before,
    .auth-visual::after {
        display: none;
    }

    .auth-form-wrapper {
        padding: 32px 24px;
        align-items: flex-start;
    }

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

    .auth-title {
        font-size: 24px;
    }
}

/* ===== UTILITY ===== */
::selection {
    background: var(--primary);
    color: var(--white);
}
