/* General Reset & Body */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background-color: #f8fafc;
    color: #2d3748;
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Login Box */
.login-box {
    background: #ffffff;
    padding: 48px;
    border-radius: 16px;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    width: 100%;
    max-width: 420px;
    border: 1px solid #e2e8f0;
}

.login-box h2 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 32px;
    text-align: center;
    color: #1a202c;
    letter-spacing: -0.025em;
}

/* Error Message */
.error-message {
    background: #fff5f5;
    color: #742a2a;
    border: 1px solid #feb2b2;
    border-left: 4px solid #f56565;
    padding: 16px 20px;
    border-radius: 8px;
    font-weight: 500;
    margin-bottom: 24px;
    font-size: 14px;
    text-align: center;
}

/* Form */
.login-form {
    position: relative;
}

.user-box {
    position: relative;
    margin-bottom: 24px;
}

.user-box input {
    width: 100%;
    padding: 16px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 14px;
    background-color: #ffffff;
    transition: all 0.2s ease;
    outline: none;
    color: #2d3748;
}

.user-box input:focus {
    border-color: #4299e1;
    box-shadow: 0 0 0 3px rgba(66, 153, 225, 0.1);
}

.user-box input::placeholder {
    color: #a0aec0;
}

.user-box label {
    position: absolute;
    top: -12px;
    left: 12px;
    font-size: 12px;
    color: #4a5568;
    background-color: #ffffff;
    padding: 0 8px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: all 0.2s ease;
}

.user-box input:focus + label {
    color: #4299e1;
}

/* Button */
button[type="submit"] {
    width: 100%;
    padding: 16px;
    border: none;
    border-radius: 8px;
    background-color: #4299e1;
    color: white;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-bottom: 24px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    min-height: 52px;
}

button[type="submit"]:hover {
    background-color: #3182ce;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(66, 153, 225, 0.3);
}

button[type="submit"]:active {
    transform: translateY(0);
}

button[type="submit"]:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* Login Info */
.login-info {
    background: #f7fafc;
    padding: 24px;
    border-radius: 12px;
    margin-top: 24px;
    border: 1px solid #e2e8f0;
}

.login-info p {
    font-weight: 600;
    margin-bottom: 16px;
    color: #2d3748;
    font-size: 14px;
}

.login-info ul {
    list-style-type: none;
    padding: 0;
    margin: 0;
}

.login-info li {
    padding: 8px 0;
    color: #4a5568;
    font-size: 13px;
    line-height: 1.5;
    border-bottom: 1px solid #e2e8f0;
}

.login-info li:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.login-info strong {
    color: #4299e1;
    font-weight: 600;
}

/* Responsive Design */
@media (max-width: 480px) {
    .login-box {
        margin: 20px;
        padding: 32px 24px;
        border-radius: 12px;
    }
    
    .login-box h2 {
        font-size: 1.75rem;
        margin-bottom: 24px;
    }
    
    .user-box input {
        padding: 14px;
        font-size: 14px;
    }
    
    button[type="submit"] {
        padding: 14px;
        font-size: 14px;
        min-height: 48px;
    }
    
    .login-info {
        padding: 20px;
    }
}

@media (max-width: 320px) {
    .login-box {
        padding: 24px 20px;
        margin: 16px;
    }
    
    .login-info {
        padding: 16px;
    }
    
    .login-info li {
        padding: 6px 0;
        font-size: 12px;
    }
}