/* ===========================
   CSS Variables
   =========================== */
:root {
    --primary-color: #d4a574;
    --primary-dark: #b8935f;
    --secondary-color: #f7f3ef;
    --accent-color: #8b6f47;
    --text-dark: #2c2c2c;
    --text-light: #666;
    --white: #ffffff;
    --gradient-1: linear-gradient(135deg, #d4a574 0%, #b8935f 100%);
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.15);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.2);
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Montserrat', sans-serif;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
    font-family: var(--font-body);
    color: var(--text-dark);
    line-height: 1.6;
}

/* ===========================
   Platform Login Styles
   =========================== */

.login-body {
    margin: 0;
    padding: 0;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.login-background {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, #f7f3ef 0%, #e8dfd6 50%, #d4a574 100%);
    z-index: -1;
}

.login-background::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        radial-gradient(circle at 20% 50%, rgba(212, 165, 116, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(212, 165, 116, 0.1) 0%, transparent 50%);
}

.login-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    max-width: 1200px;
    width: 90%;
    min-height: 600px;
    background: var(--white);
    border-radius: 30px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    overflow: hidden;
}

/* Left Side - Branding */
.login-brand {
    background: var(--gradient-1);
    padding: 4rem;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.login-brand::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 320"><path fill="%23ffffff" fill-opacity="0.05" d="M0,96L48,112C96,128,192,160,288,160C384,160,480,128,576,112C672,96,768,96,864,112C960,128,1056,160,1152,160C1248,160,1344,128,1392,112L1440,96L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z"></path></svg>') repeat-x;
    background-size: cover;
    background-position: bottom;
}

.brand-content {
    position: relative;
    z-index: 1;
    text-align: center;
    color: var(--white);
}

.brand-logo {
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 2rem;
}

.brand-logo svg {
    width: 40px;
    height: 40px;
    color: var(--white);
}

.brand-content h1 {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.brand-tagline {
    font-size: 1.1rem;
    opacity: 0.9;
    margin-bottom: 3rem;
}

.brand-features {
    text-align: left;
    max-width: 300px;
    margin: 0 auto 3rem;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.feature-item svg {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
}

.feature-item span {
    font-size: 1rem;
    opacity: 0.95;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--white);
    text-decoration: none;
    font-size: 0.95rem;
    opacity: 0.9;
    transition: var(--transition);
}

.back-link:hover {
    opacity: 1;
    transform: translateX(-5px);
}

.back-link svg {
    width: 20px;
    height: 20px;
}

/* Right Side - Login Form */
.login-form-wrapper {
    padding: 4rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.login-form-container {
    width: 100%;
    max-width: 400px;
}

.login-form-container h2 {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.login-subtitle {
    color: var(--text-light);
    margin-bottom: 2rem;
}

/* Alert Messages */
.alert {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.5rem;
    border-radius: 10px;
    margin-bottom: 1.5rem;
}

.alert svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.alert-error {
    background: #fee;
    color: #c33;
    border: 1px solid #fcc;
}

.alert-success {
    background: #efe;
    color: #3c3;
    border: 1px solid #cfc;
}

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

.login-form label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
    font-weight: 500;
    font-size: 0.95rem;
}

.input-with-icon {
    position: relative;
}

.input-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    color: var(--text-light);
}

.login-form input[type="email"],
.login-form input[type="password"] {
    width: 100%;
    padding: 1rem 1rem 1rem 3rem;
    border: 2px solid #e8e8e8;
    border-radius: 10px;
    font-size: 1rem;
    font-family: var(--font-body);
    transition: var(--transition);
}

.login-form input:focus {
    outline: none;
    border-color: var(--primary-color);
}

.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    font-size: 0.9rem;
    color: var(--text-light);
}

.checkbox-label input[type="checkbox"] {
    cursor: pointer;
}

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

.forgot-password:hover {
    opacity: 0.8;
}

.btn-login {
    width: 100%;
    padding: 1.2rem;
    background: var(--gradient-1);
    color: var(--white);
    border: none;
    border-radius: 10px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.btn-login:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(212, 165, 116, 0.3);
}

.btn-login svg {
    width: 20px;
    height: 20px;
}

/* Divider */
.login-divider {
    position: relative;
    text-align: center;
    margin: 2rem 0;
}

.login-divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: #e8e8e8;
}

.login-divider span {
    position: relative;
    background: var(--white);
    padding: 0 1rem;
    color: var(--text-light);
    font-size: 0.9rem;
}

/* Register Options */
.register-options {
    text-align: center;
}

.register-options > p {
    color: var(--text-light);
    margin-bottom: 1rem;
}

.register-buttons {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.btn-register {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
    padding: 1rem;
    border: 2px solid #e8e8e8;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
}

.btn-register svg {
    width: 20px;
    height: 20px;
}

.btn-register.client {
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-register.client:hover {
    background: var(--primary-color);
    color: var(--white);
}

.btn-register.vendor {
    color: #3498db;
    border-color: #3498db;
}

.btn-register.vendor:hover {
    background: #3498db;
    color: var(--white);
}

/* Responsive Design */
@media (max-width: 968px) {
    .login-container {
        grid-template-columns: 1fr;
        width: 95%;
    }

    .login-brand {
        padding: 3rem 2rem;
    }

    .brand-content h1 {
        font-size: 2rem;
    }

    .login-form-wrapper {
        padding: 3rem 2rem;
    }
}

@media (max-width: 640px) {
    .login-brand {
        padding: 2rem;
    }

    .brand-features {
        max-width: 100%;
    }

    .login-form-wrapper {
        padding: 2rem 1.5rem;
    }

    .login-form-container h2 {
        font-size: 2rem;
    }

    .form-options {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
}
