* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: Arial, sans-serif;
    background: #f5f6f8;
    color: #222;
    min-height: 100vh;
}

.loginPage {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.loginCard {
    width: 100%;
    max-width: 520px;
    background: #ffffff;
    border: 1px solid #e2e5ea;
    border-radius: 10px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
    padding: 28px;
}

.loginCard h1 {
    font-size: 26px;
    font-weight: 700;
    margin-bottom: 6px;
}

.subtitle {
    font-size: 14px;
    color: #555;
    margin-bottom: 18px;
}

.loginForm {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.loginForm label {
    font-size: 13px;
    font-weight: 600;
    color: #333;
}

.loginForm input {
    padding: 10px 12px;
    border: 1px solid #cfd5dd;
    border-radius: 6px;
    font-size: 14px;
}

.loginForm select {
    padding: 10px 12px;
    border: 1px solid #cfd5dd;
    border-radius: 6px;
    font-size: 14px;
    background: #fff;
}

.loginForm input:focus {
    outline: none;
    border-color: #8a2be2;
    box-shadow: 0 0 0 3px rgba(138, 43, 226, 0.15);
}

.loginForm select:focus {
    outline: none;
    border-color: #8a2be2;
    box-shadow: 0 0 0 3px rgba(138, 43, 226, 0.15);
}

.custom-dropdown {
    position: relative;
    width: 100%;
    cursor: pointer;
    user-select: none;
}

.custom-dropdown-selected {
    padding: 10px 34px 10px 12px;
    background-color: #fff;
    border: 1px solid #cfd5dd;
    border-radius: 6px;
    font-size: 14px;
    line-height: 1.35;
    min-height: 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 2px;
    position: relative;
}

.custom-dropdown-selected::after {
    content: '▼';
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 10px;
    color: #8a2be2;
    pointer-events: none;
}

.custom-dropdown.open .custom-dropdown-selected::after {
    content: '▲';
}

.custom-dropdown.open .custom-dropdown-selected,
.custom-dropdown-selected:focus {
    outline: none;
    border-color: #8a2be2;
    box-shadow: 0 0 0 3px rgba(138, 43, 226, 0.15);
}

.custom-dropdown-options {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: #fff;
    border: none;
    border-radius: 0 0 6px 6px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.2s ease;
    z-index: 1000;
}

.custom-dropdown.open .custom-dropdown-options {
    max-height: 360px;
    overflow-y: auto;
    border: 1px solid #8a2be2;
    border-top: none;
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.12);
}

.custom-dropdown-option {
    padding: 10px 12px;
    font-size: 14px;
    line-height: 1.3;
    min-height: 42px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 2px;
    border-bottom: 1px solid #e2e5ea;
    transition: background-color 0.2s;
}

.custom-dropdown-option:last-child {
    border-bottom: none;
}

.custom-dropdown-option:hover {
    background-color: #f3e8ff;
}

.custom-dropdown-option.selected {
    background-color: #ede0ff;
    font-weight: 600;
}

.custom-dropdown-option .option-title,
.custom-dropdown-selected .option-title {
    display: block;
}

.custom-dropdown-option .option-subtitle {
    display: block;
    margin-top: 1px;
    font-size: 12px;
    line-height: 1.2;
}

.loginForm button {
    margin-top: 6px;
    padding: 10px 12px;
    border: none;
    border-radius: 6px;
    background: #8a2be2;
    color: #ffffff;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
}

.loginForm button:hover {
    background: #7425bf;
}

.hint {
    margin-top: 16px;
    font-size: 12px;
    color: #666;
}
.error {
    color: #d32f2f;
    font-size: 12px;
    margin-top: 6px;
    min-height: 18px;
}

.info {
    color: #1976d2;
    font-size: 12px;
    margin-top: 6px;
    min-height: 18px;
}

.profileSection {
    margin-top: 22px;
    padding-top: 18px;
    border-top: 1px solid #e2e5ea;
}

.profileSection h2 {
    font-size: 18px;
    margin-bottom: 6px;
}