/* ===== БАЗОВЫЕ СТИЛИ СТРАНИЦЫ ===== */
body {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    margin: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    overflow-x: hidden;
    gap: 1.5rem;
    padding: 1rem;
    color: #333;
}

/* ===== ЛОГОТИП И ФИРМЕННЫЙ СТИЛЬ ===== */
.logo-container {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin-bottom: 0.5rem;
}

.logo {
    font-size: 2.8rem;
    background: linear-gradient(135deg, #2600ff 0%, #055dff 100%);
    color: white;
    width: 70px;
    height: 70px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(38, 0, 255, 0.25);
    animation: pulseLogo 2s infinite;
}

@keyframes pulseLogo {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

/* ===== АНИМАЦИЯ ФОНА ===== */
body::before {
    content: "";
    position: fixed;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.2) 0%, rgba(255,255,255,0) 70%);
    animation: pulse 15s infinite linear;
    z-index: -1;
    will-change: transform;
}

@keyframes pulse {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* ===== СТИЛИ ЗАГОЛОВКОВ ===== */
h1 {
    color: #2600ff;
    font-size: clamp(2.5rem, 6vw, 3.5rem);
    text-shadow: 0 2px 10px rgba(38, 0, 255, 0.2);
    animation: fadeIn 1s ease-out;
    user-select: none;
    margin: 0;
}

h2 {
    color: rgba(38, 0, 255, 0.7);
    font-size: clamp(1rem, 3vw, 1.2rem);
    margin-bottom: 0.5rem;
    font-weight: 500;
    text-shadow: 0 2px 10px rgba(38, 0, 255, 0.1);
    animation: fadeIn 1s ease-out;
    user-select: none;
}

.description {
    color: rgba(38, 0, 255, 0.8);
    font-size: clamp(0.9rem, 2.5vw, 1.1rem);
    text-align: center;
    max-width: 85%;
    margin: 0 auto 2rem;
    line-height: 1.5;
    animation: fadeIn 1.2s ease-out;
}

.service-description {
    color: #555;
    font-size: 0.95rem;
    line-height: 1.5;
    margin: 1rem 0;
    padding: 0 1rem;
}

/* ===== ОБЩИЕ СТИЛИ СЕКЦИЙ ===== */
.card {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    width: min(340px, 90vw);
    text-align: center;
    animation: slideUp 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
    transition: all 0.3s ease;
    user-select: none;
    border: 1px solid rgba(38, 0, 255, 0.1);
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

/* ===== СЕКЦИЯ АВТОРИЗАЦИИ ===== */
#auth p {
    color: #055dff;
    font-size: 2.3rem;
    margin-top: 0;
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.auth-btn {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, #2600ff 0%, #055dff 100%);
    border: none;
    border-radius: 10px;
    color: white;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin: 1.5rem 0 1rem;
    box-shadow: 0 4px 15px rgba(38, 0, 255, 0.3);
    position: relative;
    overflow: hidden;
}

.auth-btn::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -60%;
    width: 20px;
    height: 200%;
    background: rgba(255, 255, 255, 0.3);
    transform: rotate(25deg);
    transition: all 0.6s;
}

.auth-btn:hover {
    box-shadow: 0 7px 20px rgba(38, 0, 255, 0.4);
    transform: translateY(-3px);
}

.auth-btn:hover::after {
    left: 120%;
}

.auth-btn:active {
    transform: scale(0.98);
}

.auth-toggle {
    color: #2600ff;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    user-select: none;
    font-weight: 500;
    display: block;
    margin-top: 0.5rem;
}

.auth-toggle:hover {
    text-decoration: underline;
}

/* ===== СОВМЕЩЕННАЯ СЕКЦИЯ ИНФОРМАЦИИ И СОЦСЕТЕЙ ===== */
#moreinfo {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

#moreinfo p {
    color: #055dff;
    font-size: 1.5rem;
    margin: 0;
    font-weight: 600;
}

#social-links {
    display: flex;
    justify-content: center;
    gap: 1.8rem;
    width: 100%;
    padding-top: 1.2rem;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.social-icon {
    font-size: 2rem;
    color: #2600ff;
    transition: all 0.3s ease;
    user-select: none;
}

.social-icon:hover {
    transform: scale(1.25);
    filter: drop-shadow(0 3px 6px rgba(38, 0, 255, 0.3));
}

/* ===== СТИЛИ ФОРМЫ ===== */
.input-container {
    position: relative;
    margin-bottom: 1.2rem;
    text-align: left;
}

label {
    display: block;
    text-align: left;
    margin-bottom: 0.5rem;
    color: #444;
    font-weight: 500;
    transition: all 0.3s ease;
    font-size: 0.95rem;
}

input {
    width: 100%;
    padding: 13px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 1rem;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

input:focus {
    border-color: #2600ff;
    outline: none;
    box-shadow: 0 0 0 3px rgba(38, 0, 255, 0.1);
}

.input-container:focus-within label {
    color: #2600ff;
    transform: translateY(-3px);
}

.password-wrapper {
    position: relative;
}

.password-toggle {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: #777;
    font-size: 1.1rem;
}

.password-toggle:hover {
    color: #2600ff;
}

#forgot-password {
    text-align: right;
    margin: -0.5rem 0 0.5rem;
}

#forgot-link {
    color: #2600ff;
    font-size: 0.85rem;
    text-decoration: none;
    transition: all 0.2s ease;
}

#forgot-link:hover {
    text-decoration: underline;
}

/* ===== АНИМАЦИИ ===== */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes slideUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes pulseBtn {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

/* ===== АДАПТИВНОСТЬ ===== */
@media (max-width: 480px) {
    .card {
        padding: 1.5rem;
        width: 95vw;
    }

    .logo {
        width: 60px;
        height: 60px;
        font-size: 2.2rem;
    }

    h1 {
        font-size: 2.3rem;
    }

    .social-icon {
        font-size: 1.8rem;
    }

    #auth p {
        font-size: 2rem;
    }

    .auth-btn {
        padding: 12px;
        font-size: 1rem;
    }

    .description {
        max-width: 95%;
        margin-bottom: 1.5rem;
    }
}

@media (max-width: 350px) {
    .card {
        padding: 1.2rem;
    }

    .logo-container {
        flex-direction: column;
        text-align: center;
        gap: 0.2rem;
    }

    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 0.9rem;
    }

    .description {
        font-size: 0.85rem;
    }
}