@import url('https://fonts.googleapis.com/css2?family=Google+Sans+Flex:opsz,wght@6..144,1..1000&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Google Sans Flex", sans-serif;
}

:root {
    --primary-color: #ff8432;
    --border: 1.5px solid #e8eaf2;
    --border-color: #e8eaf2;
    --box-shadow: 0 4px 15px rgba(117, 128, 222, .2);
    --sidebar-width: 270px;
    --bg-primary: #ffffff;
    --bg-secondary: #f0f2f5;
    --text-primary: #0a0a0a;
    --text-secondary: #626380cf;
}

[data-theme="dark"] {
    --bg-primary: #111822;
    --bg-secondary: #242526;
    --text-primary: #e4e6eb;
    --text-secondary: #b0b3b8;
    --border-color: #3e4042;
    --border: 1.5px solid var(--border-color);
}

a {
    text-decoration: none;
    color: inherit;
}

.mb-20 {
    margin-bottom: 20px;
}

.p-20 {
    padding: 20px;
}

.auth-container {
    width: 100%;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--bg-secondary);
    color: var(--text-primary);
}

.auth-wrapper {
    width: 30vw;
    padding: 0 9px 30px;
}

.auth-header {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 20px;
    text-align: center;
}

.auth-header .title {
    font-size: 24px;
    font-weight: 600;
    letter-spacing: -0.3px;
    color: var(--text-primary);
}

.auth-header .description {
    color: var(--text-secondary);
    font-size: 15.6px;
    font-weight: 400;
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 13px;
}

.form-control {
    width: 100%;
    height: 50px;
    padding: 14px 18px;
    border: var(--border);
    outline: none;
    border-radius: 12px;
    font-size: 14px;
    transition: all 0.3s ease;
    background-color: var(--bg-primary);
    color: var(--text-primary);
}

.form-control:focus {
    border-color: var(--primary-color);
}

.form-control::placeholder {
    font-size: 14px;
    color: var(--text-secondary);
}

.auth-btn {
    width: 100%;
    height: 50px;
    padding: 14px 18px;
    background-color: var(--primary-color);
    color: #fff;
    border-radius: 12px;
    box-shadow: var(--box-shadow);
    border: 1px solid var(--primary-color);
    cursor: pointer;
}

.auth-terms {
    margin-top: 4px;
    margin-bottom: 6px;
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.5;
}

.auth-terms-link {
    color: var(--text-primary);
    text-decoration: underline;
    text-underline-offset: 2px;
    cursor: pointer;
}

.auth-terms-link:hover {
    color: var(--primary-color);
}

.auth-footer {
    margin-top: 8px;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.auth-footer-line {
    font-size: 14px;
    color: var(--text-secondary);
    margin: 0;
}

.auth-footer-link {
    color: var(--text-primary);
    font-weight: 500;
    text-decoration: underline;
    text-underline-offset: 2px;
    transition: color 0.2s ease;
}

.auth-footer-link:hover {
    color: var(--primary-color);
}

.auth-footer-link--block {
    display: block;
    font-size: 14px;
    color: var(--text-secondary);
}

@media (max-width: 576px) {
    .auth-container {
        padding: 0 16px;
        align-items: flex-start;
        padding-top: 24px;
    }

    .auth-wrapper {
        width: 100%;
        max-width: none;
        padding: 0 0 30px;
    }

    .auth-header .title {
        font-size: 20px;
    }

    .auth-header .description {
        font-size: 14px;
    }
}