:root {
    --primary: #10b981;
    --primary-dark: #059669;
    --primary-light: #34d399;
    --secondary: #64748b;
    --accent: #f59e0b;
    --muted: #f8fafc;
    --border: #e2e8f0;
    --dark: #1a1a2e;
}

* {
    font-family:
        "Inter",
        -apple-system,
        BlinkMacSystemFont,
        sans-serif;
}

body {
    background: #f8fafc;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 0;
}

.auth-card {
    background: white;
    border-radius: 20px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    width: 100%;
    /* max-width: 600px; */
    border: 1px solid #f3f4f6;
}

.auth-header {
    background: linear-gradient(135deg, #34d399 0%, #059669 100%);
    color: white;
    padding: 2rem;
    text-align: center;
    position: relative;
}

.auth-header::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 40px;
    background: white;
    clip-path: ellipse(60% 100% at 50% 100%);
}

.auth-header .logo {
    width: 64px;
    height: 64px;
    background: white;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    font-size: 2rem;
    color: #10b981;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
    position: relative;
    z-index: 1;
}

.auth-header h3 {
    font-weight: 800;
    font-size: 1.5rem;
    margin-bottom: 0.25rem;
}

.auth-header p {
    opacity: 0.7;
    font-size: 0.9rem;
    margin: 0;
}

.auth-body {
    padding: 2rem;
    position: relative;
    z-index: 1;
}

.form-control {
    border-radius: 10px;
    border: 1px solid #e5e7eb;
    padding: 0.875rem 1rem;
    background-color: #f9fafb;
    transition: all 0.2s;
    font-size: 0.95rem;
}

.form-control:focus {
    border-color: #10b981;
    background-color: white;
    box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.1);
}

.form-control.is-invalid {
    border-color: #ef4444;
}

.form-control.is-invalid:focus {
    box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.1);
}

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

.input-group-text {
    background: transparent;
    border: 1px solid #e5e7eb;
    border-right: none;
    border-radius: 10px 0 0 10px;
    color: #9ca3af;
    padding-left: 1rem;
}

.input-group .form-control {
    border-left: none;
    border-radius: 0 10px 10px 0;
    padding-left: 0.5rem;
}

.btn-primary {
    background: linear-gradient(135deg, #10b981, #059669);
    border: none;
    border-radius: 10px;
    padding: 0.875rem;
    font-weight: 700;
    width: 100%;
    transition: all 0.3s;
    letter-spacing: 0.3px;
    font-size: 0.95rem;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #059669, #047857);
    transform: translateY(-1px);
    box-shadow: 0 10px 20px rgba(16, 185, 129, 0.3);
}

.btn-primary:focus {
    box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.2);
}

.text-primary {
    color: #10b981 !important;
}

.text-primary:hover {
    color: #059669 !important;
}

.alert-success {
    background: #ecfdf5;
    color: #065f46;
    border: 1px solid #a7f3d0;
    border-radius: 10px;
}

.alert-danger {
    background: #fef2f2;
    color: #991b1b;
    border: 1px solid #fecaca;
    border-radius: 10px;
}

.invalid-feedback {
    color: #dc2626;
    font-size: 0.8rem;
    margin-top: 0.35rem;
}

.form-check-input:checked {
    background-color: #10b981;
    border-color: #10b981;
}

.form-check-input:focus {
    box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.15);
}

.auth-footer {
    padding: 1.25rem 2rem;
    background: #f9fafb;
    text-align: center;
    color: #6b7280;
    font-size: 0.8rem;
    border-top: 1px solid #f3f4f6;
}

/* Demo Credentials Card */
.demo-credentials {
    background: linear-gradient(
        135deg,
        rgba(16, 185, 129, 0.08),
        rgba(16, 185, 129, 0.03)
    );
    border: 1px solid rgba(16, 185, 129, 0.15);
    border-radius: 12px;
    padding: 1.25rem;
    margin-top: 1.5rem;
}

.demo-credentials .title {
    font-weight: 700;
    color: #059669;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
}

.demo-credentials .role {
    font-weight: 600;
    color: #374151;
    font-size: 0.75rem;
    margin-bottom: 0.2rem;
    text-align: left;
}

.demo-credentials .credential {
    font-family: "Monaco", "Consolas", monospace;
    font-size: 0.7rem;
    color: #6b7280;
    background: white;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    display: inline-block;
    margin: 0.1rem;
    border: 1px solid #e5e7eb;
}

.demo-credentials .divider {
    height: 1px;
    background: rgba(16, 185, 129, 0.15);
    margin: 0.75rem 0;
}

/* Password toggle */
.password-toggle {
    cursor: pointer;
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: #9ca3af;
    z-index: 10;
}

.password-toggle:hover {
    color: #6b7280;
}
