@charset "UTF-8";

/* =========================================
   Font Definitions
   ========================================= */
@font-face {
    font-family: 'Loos Extended';
    src: url('../fonts/fonnts.com-Loos_Extended_Thin.otf') format('opentype');
    font-weight: 100;
    font-style: normal;
}

@font-face {
    font-family: 'Loos Extended';
    src: url('../fonts/fonnts.com-Loos_Extended_Extra_Light.otf') format('opentype');
    font-weight: 200;
    font-style: normal;
}

@font-face {
    font-family: 'Loos Extended';
    src: url('../fonts/fonnts.com-Loos_Extended_Light.otf') format('opentype');
    font-weight: 300;
    font-style: normal;
}

@font-face {
    font-family: 'Loos Extended';
    src: url('../fonts/fonnts.com-Loos_Extended_Regular.otf') format('opentype');
    font-weight: 400;
    font-style: normal;
}

@font-face {
    font-family: 'Loos Extended';
    src: url('../fonts/fonnts.com-Loos_Extended_Medium.otf') format('opentype');
    font-weight: 500;
    font-style: normal;
}

@font-face {
    font-family: 'Loos Extended';
    src: url('../fonts/fonnts.com-Loos_Extended_Bold.otf') format('opentype');
    font-weight: 700;
    font-style: normal;
}

@font-face {
    font-family: 'Loos Extended';
    src: url('../fonts/fonnts.com-Loos_Extended_Black.otf') format('opentype');
    font-weight: 900;
    font-style: normal;
}

/* =========================================
   Variables & Reset
   ========================================= */
:root {
    --primary-red: #E31E24;     /* Bright Red from image */
    --dark-red: #8B1216;        /* Darker Red shape */
    --text-dark: #1a1a1a;
    --text-white: #ffffff;
    --font-main: 'Loos Extended', sans-serif;
}

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

body {
    font-family: var(--font-main);
    background-color: var(--primary-red);
    color: var(--text-dark);
    height: 100vh;
    overflow: hidden; /* Prevent scroll on desktop */
    position: relative;
    display: flex;
    flex-direction: column;
}

/* =========================================
   Header
   ========================================= */
header {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 80px;
    z-index: -2; /* Lower than curve */
    background-color: white; /* 100% Width White Background */
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.logo-container {
    background-color: transparent; /* Parent handles background */
    padding: 15px 40px;
}

.logo {
    font-size: 26px; /* Slightly larger to match presence */
    font-family: 'Loos Extended';
    margin-top: 10px;
    font-weight: 100; /* Completely Thin */
    color: var(--primary-red);
    letter-spacing: 1px;
    text-transform: uppercase;
}

.user-menu {
    position: absolute;
    top: 20px;
    right: 50px;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    z-index: 100;
}

.login-dropdown-btn {
    background-color: #E31E24; /* Primary Red */
    color: white;
    padding: 10px 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    font-family: 'Loos Extended', sans-serif;
    font-weight: 900;
    cursor: pointer;
    border: none;
    width: 240px;
    justify-content: space-between;
    letter-spacing: 1px;
}

.login-options {
    background-color: #1a1a1a;
    width: 240px;
    display: none; /* Hidden by default */
    padding: 0;
}

.user-menu.open .login-options {
    display: flex; /* Shown when open */
}

.login-option {
    flex: 1;
    text-align: center;
    padding: 25px 0;
    color: #E31E24; /* Red text by default */
    font-size: 16px;
    font-weight: 900;
    text-decoration: none;
    transition: background 0.3s, color 0.3s;
    background-color: #1a1a1a; /* Dark background */
}

.login-option.active {
    background-color: #E31E24; /* Red background for active */
    color: #1a1a1a; /* Dark text for active */
}

.login-option:hover {
    opacity: 0.9;
}

/* =========================================
   Main Content / Shape
   ========================================= */
.main-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
}

/* The curved dark shape on the right */
.curved-shape {
    position: absolute;
    right: -80px;
    width: 30%;
    height: 100%;
    /* background-color: var(--dark-red); */ /* Removed for SVG */
    /* clip-path: circle(50% at 88% 38%); */ /* Removed for SVG */
    z-index:-2; /* Above header background/logo */
    object-fit: cover; /* Ensure SVG scaling */
}

/* On Mobile - Removed duplicate block */

/* =========================================
   Login Form
   ========================================= */
.login-section {
    position: relative;
    z-index: 10;
    margin-left: 40px; /* Align with Logo padding */
    width: 350px;
    margin-top: 50px; /* Space from top */
}

.login-header-box {
    background-color: rgba(0, 0, 0, 0.05);
    border: 1px solid #711013;
    padding: 5px 15px;
    color: white;
    font-size: 14px;
    font-weight: 500;
    text-transform: uppercase;
    width: 100%;
    border-bottom: none;
}

.form-group {
    position: relative;
    border: 1px solid #711013;
    background-color: rgba(139, 18, 22, 0.1);
}

.form-group input {
    width: 100%;
    background: transparent;
    border: none;
    padding: 25px 15px 10px;
    color: white; /* Text color inside input */
    font-size: 18px;
    font-family: var(--font-main);
    outline: none;
    font-weight: 400;
}

.form-group label {
    position: absolute;
    top: 15px;
    left: 15px;
    color: #711013; /* Dark red text for placeholder feel */
    font-size: 24px;
    font-weight: 500;
    text-transform: uppercase;
    pointer-events: none;
    transition: 0.3s ease all;
}

/* Float label if input has focus or value */
.form-group input:focus + label,
.form-group input:not(:placeholder-shown) + label {
    top: 5px;
    font-size: 10px;
    color: rgba(0, 0, 0, 0.4);
}

.form-group:not(:last-of-type) {
    border-bottom: none;
}

.submit-btn {
    background-color: #1a1a1a;
    color: #999;
    border: none;
    padding: 10px 25px;
    font-family: var(--font-main);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 14px;
    cursor: pointer;
    margin-top: 20px;
    transition: color 0.3s;
}

.submit-btn:hover {
    color: white;
}

.register-link {
    display: inline-block;
    margin-top: 30px;
    background-color: #8B1216;
    color: white;
    text-decoration: none;
    padding: 5px 10px;
    font-size: 14px;
    text-transform: uppercase;
    font-weight: 500;
}

/* =========================================
   Background Typography
   ========================================= */
.bg-text-accounts {
    position: absolute;
    bottom: -10px;
    left: 20px;
    font-size: clamp(50px, 8vw, 120px);
    font-weight: 900;
    color: transparent;
    -webkit-text-stroke: 2px rgba(255, 255, 255, 0.3);
    z-index: 100;
    pointer-events: none;
    text-transform: uppercase;
    line-height: 1;
}

.bg-text-realestate {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    writing-mode: vertical-rl;
    text-orientation: mixed;
    font-size: clamp(30px, 6vh, 80px);
    font-weight: 900;
    color: #7A1014;
    z-index: 1;
    pointer-events: none;
    text-transform: uppercase;
    white-space: nowrap;
    opacity: 0.6;
    letter-spacing: 5px; /* Reduced from 10px to fit long strings */
}

/* =========================================
   Mobile Logic
   ========================================= */
@media (max-width: 1024px) {
    body {
        overflow-y: hidden;
        height: 100vh;
        min-height: 100vh;
        background-color: var(--primary-red);
    }
    
    header {
        height: auto;
        background-color: transparent;
        display: block;
        padding: 0;
        position: absolute;
        width: 100%;
        top: 0;
        left: 0;
        z-index: 20; /* Keep strictly lower than curved-shape (25) */
    }

    .logo-container {
        /* Slanted white background */
        background-color: white;
        width: 70%; /* increased slightly */
        padding: 15px 10px 15px 20px;
        /* Replaced sharp polygon with a smooth curve */
        border-bottom-right-radius: 100px;
        clip-path: none;
    }

    .logo {
        font-size: 20px; /* Adjusted size */
        margin-top: 0;
        font-weight: 300;
        color: var(--primary-red);
    }

    .user-menu {
        position: absolute;
        top: 20px;
        right: 20px;
        width: auto;
        z-index: 101;
    }

    .login-dropdown-btn {
        width: auto;
        min-width: 100px; /* Ensure clickability */
        background-color: #E31E24;
        padding: 10px 15px;
        font-size: 14px;
        text-transform: uppercase;
        justify-content: space-between;
        gap: 10px;
        box-shadow: 0 4px 6px rgba(0,0,0,0.2);
    }
    
    /* Hide the SVG arrow for simplicity if needed or keep it small */
    .login-dropdown-btn svg {
        width: 10px;
        height: 6px;
    }

    .login-options {
        width: 140px;
        right: 0;
        left: auto;
        display: none;
    }

    .user-menu.open .login-options {
        display: flex;
    }

    /* The Dark Red Curve on the Right - SVG Version */
    .curved-shape {
        position: absolute;
        top: 0;
        right: 0;
        width: 100%;
        height: 100%;
        /* background-color: var(--dark-red); */ /* Removed for SVG */
        /* clip-path: ellipse(50% 100% at 100% 50%); */ /* Removed for SVG */
        border-radius: 0;
        transform: none;
        z-index: 25; /* Higher than header to overlap it */
        opacity: 1;
        object-fit: cover;
    }

    /* Styles specifically to match the image's "Real Estate" text */
    .bg-text-realestate {
        display: block;
        font-size: clamp(24px, 8vh, 45px); /* Reduced from 60px */
        right: 5px;
        top: 55%;
        letter-spacing: 2px;
        opacity: 0.3; /* Subtle blend */
        color: #5e0a0d; /* Darker than the curve for contrast */
        z-index: 26; /* On top of curve */
        font-weight: 900;
    }
    


    .login-section {
        margin: 180px 0 0 20px; /* Push down and left align */
        width: 70%; /* Don't span full width */
        max-width: none;
        position: relative;
        z-index: 30; /* Higher than curve */
    }

    .login-header-box {
        background-color: #D32F2F; /* Slightly lighter header for form */
        border: none;
        font-size: 14px;
        padding: 8px 15px;
        width: 100%;
        text-align: left;
        font-weight: bold;
    }

    .form-group {
        border: 1px solid #7f0000;
        background-color: rgba(183, 28, 28, 0.3); /* Translucent dark red */
        margin-bottom: 0; /* Connected inputs */
    }
    
    .form-group:first-of-type {
        border-bottom: 1px solid #7f0000;
    }

    .form-group input {
        padding: 30px 15px 10px;
        font-size: 20px;
    }

    .form-group label {
        color: #7f0000; /* Dark text for label */
        font-size: 18px;
        top: 18px;
    }

    .submit-btn {
        background-color: #1a1a1a;
        color: white; /* Grayish text */
        border-radius: 2px;
        font-size: 12px;
        padding: 8px 15px;
        margin-top: 15px;
        width: auto;
        display: inline-block;
    }

    .register-link {
        display: inline-block; 
        background-color: #8B1216; /* Dark pill */
        margin-top: 20px;
        padding: 8px 12px;
        font-size: 11px;
        color: white;
    }

    .bg-text-accounts {
        position: absolute;
        font-size: 40px;
        bottom: 20px;
        left: 20px;
        transform: none;
        text-align: left;
        width: auto;
        color: transparent;
        -webkit-text-stroke: 1px white;
        opacity: 0.5;
    z-index: 100;
    }
}
