:root[data-theme="light"] {
    --bg-main: #ffffff;
    --text-main: #1a1a1a;
    --text-muted: #757575;
    --input-bg: #ffffff;
    --input-border: #e0e0e0;
    --btn-bg: #000000;
    --btn-text: #ffffff;
    --error-color: #d93025;
}

:root[data-theme="dark"] {
    --bg-main: #121212;
    --text-main: #f5f5f5;
    --text-muted: #a0a0a0;
    --input-bg: #1e1e1e;
    --input-border: #333333;
    --btn-bg: #ffffff;
    --btn-text: #000000;
    --error-color: #ff7b72;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    transition: background 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-main);
    color: var(--text-main);
    height: 100vh;
    overflow: hidden;
}

.container {
    display: flex;
    height: 100vh;
}

.theme-btn {
    position: absolute;
    top: 1.875rem;
    left: 1.875rem;
    z-index: 10;
    background: var(--input-bg);
    border: none;
    width: 2.625rem;
    height: 2.625rem;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.125rem;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0.25rem 0.75rem rgba(0, 0, 0, 0.1);
}

.login-side {
    width: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3.75rem;
}

.form-wrapper {
    max-width: 26.25rem;
    width: 100%;
}

header h1 {
    font-size: 1.75rem;
    margin-bottom: 0.75rem;
}

header p {
    color: var(--text-muted);
    font-size: 0.9375rem;
    margin-bottom: 2.5rem;
}

.input-group {
    margin-bottom: 1.5rem;
    position: relative;
}

.input-group label {
    display: block;
    font-size: 0.75rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-muted);
    text-transform: uppercase;
}

input {
    width: 100%;
    padding: 0.875rem 1rem;
    background: var(--input-bg);
    border: 0.0625rem solid var(--input-border);
    color: var(--text-main);
    border-radius: 0.625rem;
    font-size: 0.9375rem;
    outline: none;
}

input:focus {
    border-color: #7a7a7a;
}

.password-wrapper {
    position: relative;
}

.eye-btn {
    position: absolute;
    right: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    opacity: 0.65;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 1.5rem;
    height: 1.5rem;
    color: var(--text-main);
}

.eye-btn svg {
    width: 1.125rem;
    height: 1.125rem;
    display: block;
}

.eye-btn .icon-eye-closed {
    display: none;
}

.eye-btn.is-visible .icon-eye-open {
    display: none;
}

.eye-btn.is-visible .icon-eye-closed {
    display: block;
}

.form-actions {
    margin-bottom: 0.625rem;
}

.forgot-link {
    color: var(--text-muted);
    font-size: 0.8125rem;
    text-decoration: none;
}

.error-message {
    margin: 0.5rem 0 0;
    font-size: 0.8125rem;
    color: var(--error-color);
}

.btn-login {
    width: 100%;
    padding: 1rem;
    background: var(--btn-bg);
    color: var(--btn-text);
    border: none;
    border-radius: 0.625rem;
    font-weight: 600;
    cursor: pointer;
    margin-top: 0.625rem;
    font-size: 0.9375rem;
}

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

.tos {
    margin-top: 2rem;
    font-size: 0.8125rem;
    color: var(--text-muted);
    line-height: 1.6;
}

.tos a {
    color: var(--text-main);
    font-weight: 600;
    text-decoration: none;
    border-bottom: 0.0625rem solid var(--text-main);
}

.visual-side {
    width: 50%;
    background: #000;
    background-image: url('https://images.unsplash.com/photo-1497215728101-856f4ea42174?q=80&w=2070&auto=format&fit=crop');
    background-size: cover;
    background-position: center;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0.3) 100%);
}

.content-slider {
    position: relative;
    z-index: 2;
    width: 80%;
    text-align: left;
    color: #ffffff;
}

.phrase-container {
    height: 7.5rem;
    position: relative;
}

.phrase {
    position: absolute;
    top: 0;
    left: 0;
    font-size: 2.625rem;
    font-weight: 300;
    line-height: 1.2;
    opacity: 0;
    transform: translateX(1.875rem);
    transition: all 1s cubic-bezier(0.4, 0, 0.2, 1);
}

.phrase.active {
    opacity: 1;
    transform: translateX(0);
}

@media (max-width: 56.25rem) {
    .visual-side {
        display: none;
    }

    .login-side {
        width: 100%;
    }
}