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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background-color: white;
    color: #333;
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Оверлей для замыливания */
.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(4px);
    z-index: 998;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

    .overlay.show {
        opacity: 1;
        visibility: visible;
    }

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.header {
    margin-bottom: 80px;
    position: relative;
    z-index: 999;
}

.header-content {
    background-color: #000;
    border-radius: 12px;
    padding: 0 5px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 1152px;
    height: 47px;
    margin: 0 auto;
}

.logo {
    display: flex;
    align-items: center;
    gap: 8px;
}

.logo-img {
    width: 90px;
    height: 35px;
    border-radius: 4px;
}

.logo-text {
    color: white;
    font-size: 18px;
    font-weight: 600;
}

.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

.selection-section {
    margin-bottom: 20px;
}

.selection-header {
    display: flex;
    align-items: center;
    gap: 8px;
    justify-content: center;
}

.selection-text {
    color: #888;
    font-size: 16px;
}

.title-section {
    width: 100%;
    margin-bottom: 40px;
}

.login-section {
    align-items: center;
    background-color: #f5f5f5;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s;
    padding: 50px;
}

.main-title {
    font-size: 38px;
    font-weight: 700;
    color: #000;
    text-align: center;
    margin-bottom: 40px;
    width: 444px;
    height: 44px;
    margin-left: auto;
    margin-right: auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

.footer {
    margin-top: auto;
    padding-top: 40px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 800px;
    margin: 0 auto;
    font-size: 14px;
    color: #888;
}

.copyright {
    color: #888;
}

.privacy-link {
    color: #007AFF;
    text-decoration: none;
}

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

.text-danger {
    color: #D3413E;
}

.user-section {
    display: flex;
    align-items: center;
    gap: 12px;
}

.user-name {
    color: white;
    font-size: 14px;
    font-weight: 500;
}

.account-dropdown {
    position: relative;
}

.account-btn {
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 4px;
    border-radius: 8px;
    transition: background-color 0.2s;
}

    .account-btn:hover {
        background-color: rgba(255, 255, 255, 0.1);
    }

.dropdown-arrow {
    transition: transform 0.3s ease;
}

.account-btn.active .dropdown-arrow {
    transform: rotate(180deg);
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 8px;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    min-width: 180px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1000;
}

    .dropdown-menu.show {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }

.logout-btn {
    width: 100%;
    background: none;
    border: none;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #D3413E;
    cursor: pointer;
    border-radius: 8px;
    transition: background-color 0.2s;
}

    .logout-btn:hover {
        background-color: #f5f5f5;
    }

.login-btn {
    background-color: #007AFF;
    color: white;
    border: none;
    border-radius: 8px;
    width: 96px;
    height: 35px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.login-btn:hover {
    background-color: #0056CC;
}

/* Адаптивная верстка */
@media (max-width: 1200px) {
    .header-content {
        width: 90%;
        max-width: 1152px;
    }
}

@media (max-width: 450px) {
    .container {
        padding: 16px;
    }

    .header {
        margin-bottom: 60px;
    }

    .header-content {
        width: 90%;
        height: 47px;
        padding: 0 16px;
    }

    .logo-img {
        width: 80px;
        height: 25px;
    }

    .logo-text {
        font-size: 16px;
    }

    .user-name {
        font-size: 12px;
    }

    .login-btn {
        width: 80px;
        height: 30px;
        font-size: 13px;
    }

    .main-content {
        max-width: 100%;
        padding: 0 10px;
    }

    .main-title {
        font-size: 24px;
        width: auto;
        height: auto;
        margin-bottom: 30px;
    }

    .footer-content {
        flex-direction: column;
        gap: 8px;
        text-align: center;
        margin: 0 10px;
    }

    .dropdown-menu {
        right: -10px;
        min-width: 160px;
    }
}
