* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', sans-serif;
    background: linear-gradient(to bottom right, #f8fafc, #e2e8f0);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.container {
    width: 100%;
    max-width: 28rem;
}

.error-box, .success-box {
    padding: 12px 15px;
    margin: 10px 0;
    border-radius: 5px;
    font-weight: bold;
}
.error-box {
    background-color: #ffe6e6;
    color: #a94442;
    border: 1px solid #e6bcbc;
}
.success-box {
    background-color: #e6ffe6;
    color: #3c763d;
    border: 1px solid #b2d8b2;
}


.card {
    background: white;
    border-radius: 0.5rem;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    overflow: hidden;
}

.card-header {
    text-align: center;
    padding: 2rem 2rem 1.5rem;
}

.title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #111827;
    margin-bottom: 0.5rem;
}

.subtitle {
    color: #6b7280;
    font-size: 0.875rem;
}

.card-content {
    padding: 0 2rem 2rem;
}

.form {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.label {
    font-size: 0.875rem;
    font-weight: 500;
    color: #374151;
}

.input {
    height: 2.5rem;
    width: 100%;
    border-radius: 0.375rem;
    border: 1px solid #d1d5db;
    background-color: #f9fafb;
    padding: 0 0.75rem;
    font-size: 0.875rem;
    transition: all 0.2s ease;
}

.input:focus {
    outline: none;
    background-color: white;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.input.error {
    border-color: #ef4444;
}

.input.error:focus {
    border-color: #ef4444;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}

.password-container {
    position: relative;
    display: flex;
    align-items: center;
}

.password-input {
    padding-right: 2.5rem;
}

.password-toggle {
    position: absolute;
    right: 0.75rem;
    background: none;
    border: none;
    color: #9ca3af;
    cursor: pointer;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s ease;
}

.password-toggle:hover {
    color: #6b7280;
}

.eye-icon {
    width: 18px;
    height: 18px;
}

.error-message {
    font-size: 0.75rem;
    color: #ef4444;
    min-height: 1rem;
}

.submit-btn {
    width: 100%;
    height: 3rem;
    background-color: #111827;
    color: white;
    border: none;
    border-radius: 0.5rem;
    font-weight: 500;
    font-size: 0.875rem;
    cursor: pointer;
    transition: background-color 0.2s ease;
    margin-top: 0.5rem;
}

.submit-btn:hover {
    background-color: #1f2937;
}

.login-link {
    text-align: center;
    padding-top: 1rem;
    margin-top: 1rem;
    border-top: 1px solid #f3f4f6;
}

.login-link p {
    font-size: 0.875rem;
    color: #6b7280;
}

.login-link a {
    color: #2563eb;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

.login-link a:hover {
    color: #1d4ed8;
}

/* Toast styles */
.toast {
    position: fixed;
    top: 1rem;
    right: 1rem;
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 0.5rem;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    padding: 1rem;
    max-width: 20rem;
    z-index: 1000;
    transform: translateX(100%);
    transition: transform 0.3s ease;
}

.toast.show {
    transform: translateX(0);
}

.toast.hidden {
    display: none;
}

.toast-content h4 {
    font-size: 0.875rem;
    font-weight: 600;
    color: #111827;
    margin-bottom: 0.25rem;
}

.toast-content p {
    font-size: 0.875rem;
    color: #6b7280;
}

/* Responsive design */
@media (max-width: 640px) {
    .container {
        padding: 0.5rem;
    }
    
    .card-header {
        padding: 1.5rem 1.5rem 1rem;
    }
    
    .card-content {
        padding: 0 1.5rem 1.5rem;
    }
    
    .title {
        font-size: 1.25rem;
    }
}
