﻿/* =====================================================
   ACCOUNT.CSS - Login & Register Page Styles
   ===================================================== */

@import url("https://cdnjs.cloudflare.com/ajax/libs/meyer-reset/2.0/reset.min.css");
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Source+Serif+Pro:wght@300;600;700&display=swap');

/* =====================================================
   CSS VARIABLES
   ===================================================== */
:root {
    --primary-color: #1a1a1a;
    --primary-hover: #333333;
    --secondary-color: #7f7bee;
    --background-color: #f8f2e7;
    --card-color: #ffffff;
    --input-bg: #f5f5f5;
    --text-color: #000000;
    --light-text: rgba(0, 0, 0, 0.5);
    --border-radius: 20px;
    --input-radius: 15px;
    --button-radius: 25px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* =====================================================
   RESET & BASE STYLES
   ===================================================== */
* {
    -webkit-font-smoothing: antialiased;
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
    height: 100%;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

a {
    text-decoration: none;
}

/* =====================================================
   LOGIN CONTAINER
   ===================================================== */
.login {
    background: linear-gradient(135deg, #f8f2e7 0%, #fdf8f0 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.login-container {
    display: flex;
    max-width: 1200px;
    width: 100%;
    background-color: var(--card-color);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
}

/* =====================================================
   LEFT SECTION - BRANDING
   ===================================================== */
.login-left {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px 40px;
    background: linear-gradient(135deg, #fafafa 0%, #f0f0f0 100%);
}

.login-card {
    text-align: center;
    max-width: 400px;
}

.logo {
    width: 200px;
    height: auto;
    margin-bottom: 40px;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.1));
}

.login-title {
    font-family: "Source Serif Pro", serif;
    font-weight: 700;
    font-size: 2.8rem;
    color: var(--text-color);
    margin-bottom: 20px;
    letter-spacing: -0.5px;
}

.login-subtitle {
    font-family: "Inter", sans-serif;
    font-weight: 400;
    font-size: 1.1rem;
    color: var(--light-text);
    line-height: 1.6;
}

/* =====================================================
   RIGHT SECTION - FORM
   ===================================================== */
.login-right {
    flex: 1;
    padding: 60px 50px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: #ffffff;
}

.login-form {
    width: 100%;
    max-width: 420px;
    margin: 0 auto;
}

/* =====================================================
   DIVIDER
   ===================================================== */
.login-divider {
    display: flex;
    align-items: center;
    margin: 35px 0;
}

.divider-line {
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, transparent, #e0e0e0, transparent);
}

.divider-text {
    font-family: "Inter", sans-serif;
    font-weight: 500;
    font-size: 0.9rem;
    color: var(--light-text);
    padding: 0 20px;
}

/* =====================================================
   SOCIAL LOGIN BUTTONS
   ===================================================== */
.social-login {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 30px;
}

.social-button {
    width: 56px;
    height: 56px;
    background-color: var(--input-bg);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: var(--transition);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

    .social-button:hover {
        background-color: #e0e0e0;
        transform: translateY(-3px);
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    }

    .social-button img {
        width: 24px;
        height: 24px;
    }

/* =====================================================
   SIGNUP LINK
   ===================================================== */
.signup-link {
    text-align: center;
    margin-top: 20px;
}

    .signup-link p {
        font-family: "Inter", sans-serif;
        font-weight: 400;
        font-size: 1rem;
        color: var(--text-color);
    }

    .signup-link a {
        font-family: "Inter", sans-serif;
        font-weight: 700;
        color: var(--secondary-color);
        text-decoration: none;
        transition: var(--transition);
    }

        .signup-link a:hover {
            color: #6b67d9;
            text-decoration: underline;
        }

/* =====================================================
   RESPONSIVE DESIGN
   ===================================================== */
@media (max-width: 992px) {
    .login-container {
        flex-direction: column;
        max-width: 550px;
    }

    .login-left {
        padding: 40px 30px;
    }

    .login-right {
        padding: 40px 30px;
    }

    .logo {
        width: 160px;
    }

    .login-title {
        font-size: 2.2rem;
    }

    .login-subtitle {
        font-size: 1rem;
    }
}

@media (max-width: 576px) {
    .login {
        padding: 10px;
    }

    .login-left {
        padding: 30px 20px;
    }

    .login-right {
        padding: 30px 20px;
    }

    .logo {
        width: 140px;
    }

    .login-title {
        font-size: 1.8rem;
    }

    .login-subtitle {
        font-size: 0.9rem;
    }

    .social-button {
        width: 52px;
        height: 52px;
    }

        .social-button img {
            width: 22px;
            height: 22px;
        }
}

/* =====================================================
   ACCESSIBILITY
   ===================================================== */
a:focus-visible {
    outline: 2px solid var(--secondary-color);
    outline-offset: 2px;
    border-radius: 4px;
}
