* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    height: 100vh;
    overflow: hidden;
    position: relative;
}

.background {
    position: absolute;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, #1a0a2e 0%, #3d1f5c 30%, #5b2d7a 60%, #7a3d9a 100%);
}

.stars {
    position: absolute;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(circle, white 1px, transparent 1px),
        radial-gradient(circle, white 1px, transparent 1px),
        radial-gradient(circle, white 0.5px, transparent 0.5px);
    background-size: 250px 250px, 350px 350px, 180px 180px;
    background-position: 0 0, 40px 60px, 130px 270px;
    animation: twinkle 4s infinite;
}

@keyframes twinkle {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.6; }
}

.trees {
    position: absolute;
    bottom: 0;
    width: 100%;
    height: 35%;
    background: linear-gradient(180deg, transparent 0%, #1a0a2e 40%, #0f0520 100%);
}

.trees::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        linear-gradient(180deg, transparent 70%, #0a0315 100%),
        repeating-linear-gradient(
            90deg,
            transparent,
            transparent 50px,
            #140828 50px,
            #140828 60px,
            transparent 60px,
            transparent 80px,
            #1a0f2e 80px,
            #1a0f2e 100px,
            transparent 100px,
            transparent 120px,
            #0f0620 120px,
            #0f0620 140px
        );
    clip-path: polygon(
        0% 100%, 5% 60%, 8% 100%, 12% 50%, 15% 100%, 20% 70%, 23% 100%,
        28% 55%, 32% 100%, 35% 65%, 38% 100%, 42% 45%, 46% 100%, 50% 60%,
        54% 100%, 58% 50%, 62% 100%, 65% 70%, 68% 100%, 72% 55%, 76% 100%,
        80% 65%, 84% 100%, 88% 50%, 92% 100%, 95% 70%, 100% 100%
    );
}

.login-container {
    position: relative;
    z-index: 10;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
}

.login-box {
    background: rgba(75, 50, 120, 0.35);
    backdrop-filter: blur(20px);
    border: 2px solid rgba(120, 80, 180, 0.4);
    border-radius: 24px;
    padding: 50px 45px;
    width: 450px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
}

h1 {
    text-align: center;
    color: white;
    font-size: 44px;
    font-weight: 700;
    margin-bottom: 40px;
}

form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.input-group {
    position: relative;
}

input[type="text"],
input[type="password"] {
    width: 100%;
    padding: 16px 50px 16px 18px;
    background: rgba(100, 60, 160, 0.35);
    border: 2px solid rgba(140, 90, 200, 0.5);
    border-radius: 50px;
    color: white;
    font-size: 16px;
    outline: none;
}

input::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

input:focus {
    background: rgba(100, 60, 160, 0.45);
    border-color: rgba(160, 110, 220, 0.7);
}

.icon {
    position: absolute;
    right: 18px;
    top: 50%;
    transform: translateY(-50%);
}

.message {
    text-align: center;
    padding: 12px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    display: none;
}

.message.success {
    display: block;
    background: rgba(46, 204, 113, 0.2);
    border: 2px solid rgba(46, 204, 113, 0.5);
    color: #2ecc71;
}

.message.error {
    display: block;
    background: rgba(231, 76, 60, 0.2);
    border: 2px solid rgba(231, 76, 60, 0.5);
    color: #e74c3c;
}

.message.info {
    display: block;
    background: rgba(52, 152, 219, 0.2);
    border: 2px solid rgba(52, 152, 219, 0.5);
    color: #3498db;
}

button {
    width: 100%;
    padding: 16px;
    background: white;
    border: none;
    border-radius: 50px;
    color: #5a3d7a;
    font-size: 17px;
    font-weight: 700;
    cursor: pointer;
    margin-top: 15px;
    transition: all 0.3s ease;
}

button:hover {
    background: #f5f5f5;
    transform: scale(1.02);
}

button:active {
    transform: scale(0.98);
}