* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8fafc;
    position: relative;
    overflow: hidden;
}

.background {
    position: absolute;
    inset: 0;
    background-image: url("https://images.unsplash.com/photo-1585409677983-0f6c41ca9c3b?w=1920&q=80");
    background-size: cover;
    background-position: center;
}

.background::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        rgba(30, 58, 138, 0.95) 0%,
        rgba(30, 64, 175, 0.9) 50%,
        rgba(15, 23, 42, 0.95) 100%
    );
}

.decorative-circles {
    position: absolute;
    inset: 0;
    pointer-events: none;
}
.circle {
    position: absolute;
    border: 2px solid rgba(96, 165, 250, 0.2);
    border-radius: 50%;
}
.circle1 {
    top: 80px;
    left: 40px;
    width: 128px;
    height: 128px;
}
.circle2 {
    bottom: 80px;
    right: 40px;
    width: 192px;
    height: 192px;
}
.circle3 {
    top: 50%;
    left: 25%;
    width: 96px;
    height: 96px;
}

.container {
    position: relative;
    z-index: 10;
    width: 100%;
    max-width: 440px;
    padding: 0 24px;
}

.login-card {
    background: white;
    border-radius: 16px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    overflow: hidden;
}

.header {
    background: linear-gradient(to right, #2563eb, #1d4ed8);
    padding: 40px 32px;
    text-align: center;
}
.icon-wrapper {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    margin-bottom: 16px;
}
.icon-wrapper svg {
    width: 32px;
    height: 32px;
    color: white;
}
.header h1 {
    font-family: Georgia, serif;
    color: white;
    font-size: 28px;
    margin-bottom: 8px;
}
.header p {
    color: #bfdbfe;
    font-size: 14px;
}

.form-content {
    padding: 40px 32px;
}

.form-group {
    margin-bottom: 24px;
}
.form-group label {
    display: block;
    font-size: 14px;
    color: #374151;
    margin-bottom: 8px;
}

.input-wrapper {
    position: relative;
}
.input-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    color: #9ca3af;
    pointer-events: none;
}

input[type="text"],
input[type="password"] {
    width: 100%;
    padding: 12px 12px 12px 40px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.2s;
    outline: none;
}
input[type="text"]:focus,
input[type="password"]:focus {
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.remember-forgot {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}
.checkbox-label {
    display: flex;
    align-items: center;
    font-size: 14px;
    color: #4b5563;
}
.checkbox-label input {
    width: 16px;
    height: 16px;
    margin-right: 8px;
    cursor: pointer;
}

.submit-btn {
    width: 100%;
    padding: 12px;
    background: linear-gradient(to right, #2563eb, #1d4ed8);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: 0 10px 15px -3px rgba(37, 99, 235, 0.3);
}
.submit-btn:hover {
    background: linear-gradient(to right, #1d4ed8, #1e40af);
    box-shadow: 0 20px 25px -5px rgba(37, 99, 235, 0.4);
    transform: translateY(-1px);
}
.submit-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin-right: 8px;
}
@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.error {
    color: #dc2626;
    text-align: center;
    margin-top: 16px;
    font-size: 14px;
}

.footer {
    padding: 24px 32px;
    background: #f9fafb;
    border-top: 1px solid #e5e7eb;
    text-align: center;
}
.footer p {
    font-size: 12px;
    color: #6b7280;
}

@media (max-width: 640px) {
    .container {
        padding: 0 16px;
    }
    .header {
        padding: 32px 24px;
    }
    .header h1 {
        font-size: 24px;
    }
    .form-content {
        padding: 32px 24px;
    }
    .footer {
        padding: 20px 24px;
    }
    .circle1,
    .circle2,
    .circle3 {
        display: none;
    }
}
