body {
    font-family: 'Roboto', sans-serif;
    margin: 0;
    padding: 0;
    min-height: 100vh;
    background: linear-gradient(90deg, #a077e9 0%, #ffc36a 50%, #ff7fa7 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.login-bg-gradient {
    display: none;
}

.login-center-wrapper {
    width: 100vw;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 1;
}

.login-card {
    background: #fff;
    border-radius: 40px;
    box-shadow: 0 12px 64px 0 rgba(140, 79, 214, 0.18), 0 1.5px 8px 0 rgba(0,0,0,0.04);
    padding: 56px 48px 40px 48px;
    max-width: 900px;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 2;
}

.login-logo-block {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: -15px;
    width: 100%;
}
.login-logo-block svg {
    width: 240px;
    height: auto;
    display: block;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s ease forwards;
    animation-delay: 0s;
}

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

.login-title {
    font-size: 3.5rem;
    font-weight: 800;
    color: #111;
    margin-bottom: 8px;
    text-align: center;
    letter-spacing: 0.01em;
    width: 100%;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s ease forwards;
    animation-delay: 0.1s;
}

.login-subtitle {
    font-size: 1.6rem;
    color: #222;
    margin-bottom: 32px;
    text-align: center;
    width: 100%;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s ease forwards;
    animation-delay: 0.3s;
}

.login-input-group {
    width: 260%;
    margin-left: -78%;
    margin-bottom: 18px;
    position: relative;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s ease forwards;
    animation-delay: 0.5s;
}

.login-input {
    width: 100%;
    padding-left: 80px;
    padding-right: 80px;
    padding: 20px 48px 20px 48px;
    border: 2px solid #e7b2e9;
    border-radius: 56px;
    font-size: 1.2rem;
    outline: none;
    background: #fff;
    color: #222;
    transition: border 0.2s;
    box-sizing: border-box;
}
.login-input:focus {
    border: 2px solid #a077e9;
}

.login-password-toggle {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #e7b2e9;
    font-size: 1.2rem;
    transition: color 0.3s ease;
    width: 26px;
    height: 26px;
}

.login-password-toggle:hover {
    color: #a077e9;
}

.login-password-toggle svg {
    width: 26px;
    height: 26px;
    position: absolute;
    transition: all 0.3s ease;
}

.login-password-toggle:hover svg {
    transform: scale(1.1);
}

.login-password-toggle .eye-open {
    visibility: hidden;
    transform: scale(0);
    opacity: 0;
}

.login-password-toggle .eye-closed {
    visibility: visible;
    transform: scale(1);
    opacity: 1;
}

.login-password-toggle.visible .eye-open {
    visibility: visible;
    transform: scale(1);
    opacity: 1;
}

.login-password-toggle.visible .eye-closed {
    visibility: hidden;
    transform: scale(0);
    opacity: 0;
}

.login-row.login-remember-row {
    width: 260%;
    margin-left: -74%;
    display: flex;
    align-items: center;
    margin-bottom: 28px;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s ease forwards;
    animation-delay: 0.7s;
}

.login-checkbox-label {
    display: flex;
    align-items: center;
    font-size: 1.1rem;
    color: #222;
    cursor: pointer;
    user-select: none;
}
.login-checkbox {
    display: none;
}
.login-checkbox-custom {
    width: 22px;
    height: 22px;
    border: 2px solid #a077e9;
    border-radius: 6px;
    margin-right: 12px;
    background: #fff;
    display: inline-block;
    position: relative;
    transition: all 0.3s ease;
}
.login-checkbox:checked + .login-checkbox-custom {
    background: #a077e9;
    border-color: #a077e9;
    transform: scale(1.05);
}
.login-checkbox:checked + .login-checkbox-custom:after {
    content: '';
    position: absolute;
    left: 6px;
    top: 3px;
    width: 6px;
    height: 12px;
    border: solid #fff;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg) scale(0);
    animation: checkmark 0.2s ease-in-out forwards;
}

@keyframes checkmark {
    0% {
        transform: rotate(45deg) scale(0);
        opacity: 0;
    }
    50% {
        transform: rotate(45deg) scale(1.2);
        opacity: 0.5;
    }
    100% {
        transform: rotate(45deg) scale(1);
        opacity: 1;
    }
}

.login-checkbox-custom:hover {
    border-color: #7b39ff;
    transform: scale(1.05);
}

.login-btn-main {
    width: 260%;
    margin-left: -78%;
    padding: 20px 48px 20px 48px;
    background: #a077e9;
    color: #fff;
    border: none;
    border-radius: 48px;
    font-size: 1.5rem;
    font-weight: 700;
    cursor: pointer;
    margin-bottom: 18px;
    transition: background 0.2s, color 0.2s;
    box-shadow: none;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s ease forwards;
    animation-delay: 0.9s;
}
.login-btn-main:hover {
    background: #7b39ff;
    color: #fff;
}

.login-bottom-row {
    width: 100%;
    text-align: center;
    font-size: 1.1rem;
    color: #222;
    margin-top: 12px;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s ease forwards;
    animation-delay: 1.1s;
}
.login-link-register {
    color: #ff7fa7;
    text-decoration: none;
    font-weight: 500;
    margin-left: 4px;
    transition: color 0.2s;
}
.login-link-register:hover {
    color: #a077e9;
}

.login-error-block {
    width: 100%;
    background: #ffe6e6;
    color: #d32f2f;
    border-radius: 16px;
    padding: 14px 22px;
    margin-bottom: 18px;
    font-size: 1.1rem;
    text-align: left;
}
.login-error-block ul {
    margin: 0;
    padding-left: 18px;
}
.login-error-block li {
    margin-bottom: 4px;
}

.clip-bg {
    position: fixed;
    z-index: 0;
    background: url('Clip.png') center center/contain no-repeat;
    filter: brightness(0.3);
    opacity: 0.7;
    pointer-events: none;
    transition: opacity 0.3s, transform 0.3s;
}
.clip-bg-1,
.clip-bg-2 {
    width: 1400px;
    height: 1400px;
}
.clip-bg-1 {
    bottom: -240px;
    left: -320px;
    transform: rotate(-27deg) scale(1.15);
    opacity: 0.7;
}
.clip-bg-2 {
    top: -200px;
    right: -320px;
    transform: rotate(33deg) scale(1.05);
    opacity: 0.6;
}
@media (max-width: 900px) {
    .login-card {
        max-width: 98vw;
        padding: 32px 4vw 24px 4vw;
        margin: 15px;
        border-radius: 24px;
    }
    .login-title {
        font-size: 2.3rem;
        margin-bottom: 12px;
    }
    .login-subtitle {
        font-size: 1.15rem;
        margin-bottom: 24px;
    }
    .login-input-group {
        width: 100%;
        margin-left: 0;
        margin-bottom: 16px;
    }
    .login-input {
        padding: 16px 20px;
        border-radius: 32px;
        font-size: 1rem;
        -webkit-appearance: none;
        -moz-appearance: none;
        appearance: none;
    }
    .login-row.login-remember-row {
        width: 100%;
        margin-left: 0;
        margin-bottom: 24px;
    }
    .login-btn-main {
        width: 100%;
        margin-left: 0;
        padding: 16px 24px;
        font-size: 1.2rem;
        border-radius: 32px;
    }
    .login-bottom-row {
        font-size: 1rem;
        margin-top: 16px;
    }
    .login-error-block {
        padding: 12px 16px;
        font-size: 0.95rem;
        border-radius: 12px;
    }
    .login-logo-block svg {
        width: 180px;
    }
}
@media (max-width: 600px) {
    body {
        background: linear-gradient(135deg, #a077e9 0%, #ffc36a 50%, #ff7fa7 100%);
    }
    
    .login-card {
        padding: 24px 16px;
        border-radius: 20px;
        margin: 10px;
        box-shadow: 0 8px 32px 0 rgba(140, 79, 214, 0.15);
    }
    
    .login-title {
        font-size: 1.8rem;
        margin-bottom: 8px;
    }
    
    .login-subtitle {
        font-size: 0.95rem;
        margin-bottom: 20px;
    }
    
    .login-input {
        font-size: 0.95rem;
        padding: 14px 16px;
        border-radius: 24px;
    }
    
    .login-checkbox-label {
        font-size: 0.95rem;
    }
    
    .login-checkbox-custom {
        width: 20px;
        height: 20px;
        margin-right: 8px;
    }
    
    .login-btn-main {
        padding: 14px 20px;
        font-size: 1.1rem;
        border-radius: 24px;
    }
    
    .login-bottom-row {
        font-size: 0.9rem;
    }
    
    .login-link-register {
        display: inline-block;
        margin-top: 4px;
    }
    
    .login-error-block {
        padding: 10px 14px;
        font-size: 0.9rem;
        border-radius: 12px;
    }
    
    .login-error-block ul {
        padding-left: 16px;
    }
    
    .login-error-block li {
        margin-bottom: 3px;
    }
    .login-logo-block svg {
        width: 140px;
    }
}

/* Добавляем поддержку устройств с маленькой высотой экрана */
@media (max-height: 600px) {
    .login-card {
        padding: 16px;
        margin: 8px;
    }
    
    .login-title {
        font-size: 1.6rem;
        margin-bottom: 6px;
    }
    
    .login-subtitle {
        font-size: 0.9rem;
        margin-bottom: 16px;
    }
    
    .login-input-group {
        margin-bottom: 12px;
    }
    
    .login-input {
        padding: 12px 16px;
    }
    
    .login-row.login-remember-row {
        margin-bottom: 16px;
    }
    
    .login-btn-main {
        padding: 12px 20px;
        margin-bottom: 12px;
    }
}