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

:root {
    --gold: #c9a96e;
    --gold-light: #e8d5a3;
    --dark: #080808;
    --dark-2: #111;
    --dark-3: #1a1a1a;
    --gray: #888;
    --light: #f0ece4;
}

body {
    font-family: 'Montserrat', sans-serif;
    background: var(--dark);
    color: var(--light);
    min-height: 100vh;
    display: flex;
    overflow: hidden;
}

.panel-left {
    flex: 1;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 60px;
}

.panel-left::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        linear-gradient(135deg, rgba(201,169,110,0.08) 0%, transparent 60%),
        linear-gradient(to bottom, rgba(8,8,8,0.2) 0%, rgba(8,8,8,0.85) 100%);
    z-index: 1;
}

.bg-lines {
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
}

.bg-lines::before,
.bg-lines::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    border: 1px solid rgba(201,169,110,0.07);
}

.bg-lines::before {
    width: 700px;
    height: 700px;
    top: -200px;
    left: -200px;
    animation: rotateSlow 30s linear infinite;
}

.bg-lines::after {
    width: 500px;
    height: 500px;
    bottom: -100px;
    right: -100px;
    animation: rotateSlow 20s linear infinite reverse;
}

@keyframes rotateSlow {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.bg-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(201,169,110,0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(201,169,110,0.04) 1px, transparent 1px);
    background-size: 60px 60px;
    z-index: 0;
}

.panel-left-label {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
    text-align: center;
    width: 100%;
    padding: 0 40px;
}

.big-letter {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(80px, 12vw, 160px);
    font-weight: 300;
    color: rgba(201,169,110,0.06);
    line-height: 1;
    letter-spacing: -5px;
    user-select: none;
    display: block;
}

.panel-left-tagline {
    position: relative;
    z-index: 2;
}

.panel-left-tagline h2 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 42px;
    font-weight: 300;
    color: var(--light);
    line-height: 1.2;
    margin-bottom: 16px;
    animation: fadeUp 1s ease 0.2s both;
}

.panel-left-tagline h2 em {
    color: var(--gold);
    font-style: italic;
}

.panel-left-tagline p {
    font-size: 12px;
    font-weight: 300;
    color: var(--gray);
    letter-spacing: 3px;
    text-transform: uppercase;
    animation: fadeUp 1s ease 0.4s both;
}

.gold-line {
    width: 40px;
    height: 1px;
    background: var(--gold);
    margin-bottom: 20px;
    animation: expandLine 1s ease 0.1s both;
}

@keyframes expandLine {
    from { width: 0; opacity: 0; }
    to { width: 40px; opacity: 1; }
}

.panel-right {
    width: 480px;
    min-height: 100vh;
    background: var(--dark-2);
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 60px 50px;
    position: relative;
    border-left: 1px solid rgba(201,169,110,0.1);
}

.panel-right::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
    opacity: 0.5;
}

.signin-back {
    position: absolute;
    top: 30px;
    right: 50px;
    animation: fadeUp 0.8s ease 0s both;
}

.signin-back a {
    font-size: 11px;
    color: var(--gray);
    text-decoration: none;
    letter-spacing: 2px;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: color 0.2s;
}

.signin-back a::before {
    content: '←';
    font-size: 14px;
}

.signin-back a:hover {
    color: var(--light);
}

.signin-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 50px;
    animation: fadeUp 0.8s ease 0s both;
}

.signin-logo img {
    width: 38px;
    height: 38px;
    object-fit: contain;
}

.signin-logo-text {
    font-family: 'Cormorant Garamond', serif;
    font-size: 20px;
    font-weight: 400;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: var(--light);
}

.signin-heading {
    margin-bottom: 40px;
    animation: fadeUp 0.8s ease 0.15s both;
}

.signin-heading h1 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 38px;
    font-weight: 300;
    color: var(--light);
    line-height: 1.1;
    margin-bottom: 8px;
}

.signin-heading h1 span {
    color: var(--gold);
}

.signin-heading p {
    font-size: 12px;
    font-weight: 300;
    color: var(--gray);
    letter-spacing: 1px;
}

.signin-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
    animation: fadeUp 0.8s ease both;
}

.form-group:nth-child(1) { animation-delay: 0.25s; }
.form-group:nth-child(2) { animation-delay: 0.35s; }

.form-group label {
    font-size: 10px;
    font-weight: 500;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--gray);
}

.form-group input {
    background: var(--dark-3);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 4px;
    padding: 14px 18px;
    color: var(--light);
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    font-weight: 300;
    outline: none;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    width: 100%;
}

.form-group input::placeholder {
    color: rgba(255,255,255,0.15);
}

.form-group input:focus {
    border-color: rgba(201,169,110,0.5);
    box-shadow: 0 0 0 3px rgba(201,169,110,0.06);
}

.form-forgot {
    text-align: right;
    margin-top: -10px;
    animation: fadeUp 0.8s ease 0.4s both;
}

.form-forgot a {
    font-size: 11px;
    color: var(--gray);
    text-decoration: none;
    letter-spacing: 0.5px;
    transition: color 0.2s;
}

.form-forgot a:hover {
    color: var(--gold);
}

.btn-submit {
    margin-top: 8px;
    background: transparent;
    border: 1px solid var(--gold);
    color: var(--gold);
    padding: 15px 30px;
    border-radius: 4px;
    font-family: 'Montserrat', sans-serif;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 3px;
    text-transform: uppercase;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: color 0.4s ease;
    animation: fadeUp 0.8s ease 0.5s both;
}

.btn-submit::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--gold);
    transform: translateX(-101%);
    transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
    z-index: 0;
}

.btn-submit span {
    position: relative;
    z-index: 1;
}

.btn-submit:hover {
    color: var(--dark);
}

.btn-submit:hover::before {
    transform: translateX(0);
}

.divider {
    display: flex;
    align-items: center;
    gap: 16px;
    animation: fadeUp 0.8s ease 0.55s both;
}

.divider::before,
.divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: rgba(255,255,255,0.06);
}

.divider span {
    font-size: 10px;
    color: var(--gray);
    letter-spacing: 2px;
    text-transform: uppercase;
}

.signin-register {
    text-align: center;
    animation: fadeUp 0.8s ease 0.6s both;
}

.signin-register p {
    font-size: 12px;
    color: var(--gray);
    font-weight: 300;
}

.signin-register a {
    color: var(--gold-light);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}

.signin-register a:hover {
    color: var(--gold);
}

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

@media (max-width: 900px) {
    .panel-left { display: none; }
    .panel-right {
        width: 100%;
        padding: 50px 30px;
    }
}

@media (max-width: 480px) {
    .panel-right { padding: 40px 20px; }
    .signin-heading h1 { font-size: 30px; }
    .signin-back { right: 20px; }
}