@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700&display=swap');

:root {
    --primary-color: #A67B5B; /* Light Coffee */
    --primary-dark: #6F4E37; /* Dark Coffee */
    --secondary-color: #2C3E50; /* Dark Slate */
    --accent-color: #D4A373; /* Golden Brown */
    --text-main: #2C3E50;
    --text-light: #7F8C8D;
    --bg-light: #FAFAFA;
    --white: #FFFFFF;
    --error: #E74C3C;
    --success: #2ECC71;
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --shadow-sm: 0 4px 6px rgba(0,0,0,0.05);
    --shadow-md: 0 10px 25px rgba(0,0,0,0.1);
}

*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Outfit', sans-serif;
}

body {
    background-color: var(--bg-light);
    color: var(--text-main);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Main Layout */
.auth-container {
    width: 100vw;
    height: 100vh;
    display: grid;
    grid-template-columns: 1fr 1fr;
    overflow: hidden;
}

/* Left Side - Brand */
.auth-brand-section {
    background: linear-gradient(135deg, rgba(44, 62, 80, 0.9), rgba(111, 78, 55, 0.8)), url('/static/img/coffee-bg.png');
    background-size: cover;
    background-position: center;
    color: var(--white);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 4rem;
    position: relative;
    text-align: center;
}

/* Decorative Circles */
.auth-brand-section::before {
    content: '';
    position: absolute;
    top: -50px;
    left: -50px;
    width: 300px;
    height: 300px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    filter: blur(50px);
}

.brand-content {
    z-index: 2;
    max-width: 600px;
}

.brand-logo img {
    height: 120px;
    margin-bottom: 2rem;
    filter: drop-shadow(0 4px 6px rgba(0,0,0,0.2));
}

.brand-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    letter-spacing: -1px;
    color: var(--white);
}

.brand-description {
    font-size: 1.2rem;
    line-height: 1.6;
    opacity: 0.9;
    margin-bottom: 2.5rem;
}

.brand-btn {
    display: inline-block;
    padding: 12px 30px;
    border: 2px solid var(--white);
    color: var(--white);
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.brand-btn:hover {
    background: var(--white);
    color: var(--primary-dark);
    transform: translateY(-2px);
}

/* Right Side - Form */
.auth-form-section {
    background: var(--white);
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 2rem;
    position: relative;
    overflow-y: auto;
}

.auth-card {
    width: 100%;
    max-width: 450px;
    padding: 2rem;
}

.form-header {
    margin-bottom: 2.5rem;
    text-align: left;
}

.form-header h2 {
    font-size: 2rem;
    color: var(--text-main);
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.form-header p {
    color: var(--text-light);
    font-size: 1rem;
}

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

.input-wrapper {
    position: relative;
}

.form-control {
    width: 100%;
    padding: 16px 16px 16px 45px;
    border: 2px solid #E0E0E0;
    border-radius: var(--radius-sm);
    font-size: 1rem;
    transition: all 0.3s ease;
    background: #F9F9F9;
    color: var(--text-main);
}

.form-control:focus {
    border-color: var(--primary-color);
    background: var(--white);
    outline: none;
    box-shadow: 0 0 0 4px rgba(166, 123, 91, 0.1);
}

.input-icon {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-light);
    font-size: 1.2rem;
    transition: color 0.3s ease;
}

.form-control:focus + .input-icon {
    color: var(--primary-color);
}

.toggle-password {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: var(--text-light);
}

.form-actions {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 1.5rem;
    align-items: center;
}

.form-actions-between {
    justify-content: space-between;
}

.forgot-password {
    color: var(--primary-dark);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
}

.forgot-password:hover {
    text-decoration: underline;
}

.btn-primary {
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, var(--primary-dark), var(--primary-color));
    color: var(--white);
    border: none;
    border-radius: var(--radius-sm);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(111, 78, 55, 0.3);
    text-align: center;
    display: block;
    text-decoration: none;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(111, 78, 55, 0.4);
}

.form-footer {
    margin-top: 2rem;
    text-align: center;
    font-size: 0.95rem;
    color: var(--text-light);
}

.form-footer a {
    color: var(--primary-dark);
    text-decoration: none;
    font-weight: 600;
    display: inline-block;
    margin-top: 5px;
}

.form-footer a:hover {
    text-decoration: underline;
}

/* Alert Messages */
.alert {
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
}

.alert-error, .alert-danger {
    background-color: #FDEDEC;
    color: var(--error);
    border: 1px solid #F5B7B1;
}

.alert-success {
    background-color: #EAFAF1;
    color: var(--success);
    border: 1px solid #A9DFBF;
}

.alert-info {
    background-color: #EBF5FB;
    color: #2980B9;
    border: 1px solid #AED6F1;
}

.alert-warning {
    background-color: #FEF9E7;
    color: #F39C12;
    border: 1px solid #FAD7A0;
}

/* Responsive */
@media (max-width: 900px) {
    .auth-container {
        grid-template-columns: 1fr;
    }
    
    .auth-brand-section {
        display: none; /* Hide brand section on mobile for cleaner look */
    }

    .auth-form-section {
        padding: 1.5rem;
        background: var(--bg-light);
    }

    .auth-card {
        background: var(--white);
        padding: 2rem;
        border-radius: var(--radius-md);
        box-shadow: var(--shadow-sm);
    }
}