/* Login Page - Custom Styles */
/* Replacing Tailwind CSS with custom, performant CSS */

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

html,
body {
    height: 100%;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

body {
    background-color: #f9fafb;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.container {
    width: 100%;
    max-width: 28rem;
}

.header {
    text-align: center;
    margin-bottom: 2rem;
}

.header h1 {
    font-size: 2.25rem;
    font-weight: 700;
    color: #111827;
    margin-bottom: 0.5rem;
}

.header p {
    color: #6b7280;
    font-size: 1rem;
}

/* Alert Styles */
.alert {
    padding: 0.75rem 1rem;
    border-radius: 0.5rem;
    margin-bottom: 1.5rem;
    border: 1px solid;
}

.alert-success {
    background-color: #ecfdf5;
    border-color: #a7f3d0;
    color: #065f46;
}

.alert-error {
    background-color: #fef2f2;
    border-color: #fecaca;
    color: #991b1b;
}

.alert-error ul {
    list-style-position: inside;
    list-style-type: disc;
}

.alert-error li {
    margin: 0.25rem 0;
}

/* Card Styles */
.card {
    background-color: white;
    padding: 2rem;
    border-radius: 0.75rem;
    border: 1px solid #e5e7eb;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}

/* Form Styles */
.form-group {
    margin-bottom: 1.25rem;
}

.form-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    color: #374151;
    margin-bottom: 0.5rem;
}

.form-input {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid #d1d5db;
    border-radius: 0.5rem;
    font-size: 1rem;
    color: #111827;
    transition: all 0.15s ease-in-out;
}

.form-input:focus {
    outline: none;
    border-color: #111827;
    box-shadow: 0 0 0 2px #111827;
}

.form-input::placeholder {
    color: #9ca3af;
}

/* Button Styles */
.btn {
    width: 100%;
    padding: 0.75rem 1rem;
    background-color: #111827;
    color: white;
    font-weight: 600;
    border-radius: 0.5rem;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.15s ease-in-out;
    margin-top: 1.5rem;
}

.btn:hover {
    background-color: #1f2937;
}

.btn:focus {
    outline: none;
    box-shadow: 0 0 0 2px #fff, 0 0 0 4px #111827;
}

.btn:active {
    background-color: #374151;
}

/* Footer Text */
.footer-text {
    text-align: center;
    font-size: 0.875rem;
    color: #6b7280;
    margin-top: 1.5rem;
}

/* Responsive Design */
@media (max-width: 640px) {
    .header h1 {
        font-size: 1.875rem;
    }

    .card {
        padding: 1.5rem;
    }
}

/* Loading State (optional) */
.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Security Badge */
.security-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background-color: #f3f4f6;
    border-radius: 0.375rem;
    font-size: 0.875rem;
    color: #374151;
}

.security-badge::before {
    content: "🔒";
}