* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, "PingFang SC", sans-serif;
    min-height: 100vh;
    background: #000;
}

.background-slides {
    position: fixed;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 0;
}

.bg-slide {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1.2s ease-in-out;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    filter: brightness(0.6);
}

.bg-slide.active {
    opacity: 1;
}

.login-wrapper {
    position: relative;
    z-index: 1;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 30px 20px;
}

.logo-section {
    text-align: center;
    margin-bottom: 30px;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.logo-section.visible {
    opacity: 1;
}

.logo-circle {
    width: 70px;
    height: 70px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 50%;
    margin: 0 auto 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.logo-svg {
    width: 35px;
    height: 35px;
    color: white;
}

.login-title {
    color: white;
    font-size: 20px;
    font-weight: 400;
    letter-spacing: 2px;
}

.login-form {
    width: 100%;
    max-width: 320px;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(15px);
    border-radius: 20px;
    padding: 35px 30px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: -10px;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.login-form.visible {
    opacity: 1;
}

.error-message {
    background: rgba(255, 59, 48, 0.2);
    color: #ff6b6b;
    padding: 12px 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 14px;
    text-align: center;
    border: 1px solid rgba(255, 59, 48, 0.3);
    display: none;
}

.error-message.show {
    display: block;
    animation: fadeIn 0.3s ease;
}

.error-message.success {
    background: rgba(76, 175, 80, 0.2);
    color: #4caf50;
    border-color: rgba(76, 175, 80, 0.3);
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

.input-group {
    margin-bottom: 30px;
    position: relative;
}

.input-row {
    display: flex;
    align-items: center;
    padding-bottom: 8px;
    position: relative;
}

.input-icon {
    width: 22px;
    height: 22px;
    margin-right: 12px;
    color: rgba(255, 255, 255, 0.8);
    flex-shrink: 0;
}

.input-field {
    width: 100%;
    background: transparent;
    border: none;
    color: white;
    font-size: 16px;
    padding: 8px 0;
    outline: none;
    letter-spacing: 1px;
}

.input-field::placeholder {
    color: rgba(255, 255, 255, 0.5);
    font-size: 14px;
}

.input-line {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: rgba(255, 255, 255, 0.3);
}

.input-line::after {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: white;
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.input-field:focus + .input-line::after {
    transform: scaleX(1);
}

.input-field:focus + .input-line {
    background: transparent;
}

.input-field.has-value + .input-line::after {
    transform: scaleX(1);
}

.login-button {
    width: 100%;
    height: 36px;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 400;
    cursor: pointer;
    transition: all 0.2s ease;
    letter-spacing: 2px;
    position: relative;
    overflow: hidden;
    margin-top: 5px;
}

.login-button:hover {
    background: rgba(0, 0, 0, 0.9);
    transform: translateY(-1px);
}

.login-button:active {
    transform: translateY(0);
}

.login-button::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.5s;
}

.login-button:hover::after {
    left: 100%;
}

.login-button.processing {
    opacity: 0.7;
}

.login-button:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.login-footer {
    text-align: center;
    margin-top: 30px;
    color: rgba(255, 255, 255, 0.5);
    font-size: 12px;
    line-height: 1.6;
}

.login-footer p {
    margin: 3px 0;
}

@media (max-width: 375px) {
    .login-form {
        max-width: 300px;
        padding: 30px 25px;
        margin-top: -15px;
    }
    
    .logo-circle {
        width: 60px;
        height: 60px;
    }
    
    .logo-svg {
        width: 30px;
        height: 30px;
    }
    
    .login-title {
        font-size: 18px;
    }
    
    .logo-section {
        margin-bottom: 25px;
    }
}

@media (min-width: 768px) {
    .login-form {
        max-width: 360px;
    }
}
