:root {
    --bg-color: #1f1f1f;
    --card-bg: #131314;
    --google-blue: #8ab4f8;
    --text-primary: #e3e3e3;
    --text-secondary: #c4c7c5;
    --border-color: #8e918f;
    --btn-filled: #a8c7fa;
    --btn-text: #062e6f;
}

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

body {
    background-color: var(--bg-color);
    color: var(--text-primary);
    font-family: 'Roboto', Arial, sans-serif;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.main-wrapper {
    width: 100%;
    max-width: 1040px;
    padding: 24px;
}

.card {
    background: var(--card-bg);
    border-radius: 28px;
    padding: 48px;
    min-height: 400px;
}

.grid-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
}

/* Typography */
h1 {
    font-size: 36px;
    font-weight: 400;
    margin: 16px 0 8px;
}

p {
    font-size: 16px;
    color: var(--text-primary);
}

.blue-link {
    color: var(--google-blue);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: background 0.2s;
    border-radius: 4px;
}

.blue-link:hover {
    text-decoration: underline;
}

/* Input Field */
.input-container {
    position: relative;
    margin-top: 10px;
    margin-bottom: 8px;
}

.input-container input {
    width: 100%;
    background: transparent;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    padding: 16px;
    color: white;
    font-size: 16px;
    outline: none;
    transition: border 0.1s ease;
}

.input-container input:focus {
    border: 2px solid var(--google-blue);
    padding: 15px;
    /* Border qalinlashganda kontent qimirlamasligi uchun */
}

.input-container label {
    position: absolute;
    left: 16px;
    top: 16px;
    color: var(--text-secondary);
    pointer-events: none;
    transition: 0.15s cubic-bezier(0.4, 0, 0.2, 1);
    background: var(--card-bg);
}

.input-container input:focus~label,
.input-container input:not(:placeholder-shown)~label {
    top: -10px;
    left: 10px;
    font-size: 12px;
    color: var(--google-blue);
    padding: 0 6px;
}

.notice {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.5;
    margin: 40px 0;
}

/* Buttons */
.button-row {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 12px;
    margin-top: 20px;
}

.create-acc-wrapper {
    position: relative;
}

.text-btn {
    background: none;
    border: none;
    color: var(--google-blue);
    padding: 10px 12px;
    font-weight: 500;
    cursor: pointer;
    border-radius: 20px;
}

.text-btn:hover {
    background: rgba(138, 180, 248, 0.08);
}

.filled-btn {
    background: var(--btn-filled);
    color: var(--btn-text);
    border: none;
    padding: 10px 24px;
    border-radius: 20px;
    font-weight: 500;
    cursor: pointer;
}

.filled-btn:hover {
    background: #d3e3fd;
}

/* Logo & Headers */
.google-logo {
    font-size: 24px;
    font-weight: 500;
    margin-bottom: 12px;
    letter-spacing: -0.5px;
}

/* Dropdown */
.dropdown-menu {
    position: absolute;
    bottom: 110%;
    left: 0;
    background: #2d2e31;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
    border-radius: 4px;
    display: none;
    flex-direction: column;
    min-width: 200px;
    padding: 8px 0;
    z-index: 100;
}

.dropdown-menu.show {
    display: flex;
}

.dropdown-menu a {
    color: var(--text-primary);
    text-decoration: none;
    padding: 12px 16px;
    font-size: 14px;
}

.dropdown-menu a:hover {
    background: #3c4043;
}

/* Footer */
.footer {
    display: flex;
    justify-content: space-between;
    margin-top: 24px;
    padding: 0 12px;
    font-size: 12px;
    color: var(--text-secondary);
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    margin-left: 20px;
}

/* RESPONSIVE */
@media (max-width: 768px) {
    .main-wrapper {
        padding: 0;
    }

    .card {
        border-radius: 0;
        min-height: 100vh;
        padding: 36px 24px;
    }

    .grid-container {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    h1 {
        font-size: 24px;
    }

    .button-row {
        flex-direction: row;
        justify-content: space-between;
        margin-top: 50px;
    }

    .footer {
        flex-direction: column;
        gap: 20px;
        align-items: center;
    }
}