/* Stralys Kundenportal - CSS im Original stralys.de Design */

:root {
    --brand-red: #8b2635;
    --brand-dark: #1f2937;
    --primary: #8b2635;
    --primary-foreground: #ffffff;
    --background: #fafafa;
    --foreground: #1f2937;
    --card: #ffffff;
    --card-foreground: #1f2937;
    --secondary: #f3f4f6;
    --secondary-foreground: #1f2937;
    --muted: #f3f4f6;
    --muted-foreground: #6b7280;
    --accent: #f3f4f6;
    --accent-foreground: #8b2635;
    --border: #e5e7eb;
    --input: #e5e7eb;
    --ring: #8b2635;
    --destructive: #dc2626;
    --success: #16a34a;
    --warning: #ca8a04;
    --info: #2563eb;
    --radius: 0.75rem;
    --spacing: 0.25rem;
}

@supports (color: oklch(45% .18 25)) {
    :root {
        --brand-red: oklch(45% .18 25);
        --brand-dark: oklch(20% .02 260);
        --primary: oklch(45% .18 25);
        --primary-foreground: oklch(100% 0 0);
        --background: oklch(99% 0 0);
        --foreground: oklch(20% .02 260);
        --card: oklch(100% 0 0);
        --card-foreground: oklch(20% .02 260);
        --secondary: oklch(96% .01 260);
        --secondary-foreground: oklch(20% .02 260);
        --muted: oklch(96% .01 260);
        --muted-foreground: oklch(55% .02 260);
        --accent: oklch(96% .01 260);
        --accent-foreground: oklch(45% .18 25);
        --border: oklch(92% .01 260);
        --input: oklch(92% .01 260);
        --ring: oklch(45% .18 25);
        --destructive: oklch(57.7% .245 27.325);
        --success: oklch(55% .2 145);
        --warning: oklch(70% .15 85);
        --info: oklch(55% .2 250);
    }
}

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    border: 0 solid var(--border);
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: linear-gradient(to bottom, oklch(98% .005 260), oklch(96% .01 260));
    color: var(--foreground);
    line-height: 1.5;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Poppins', 'Inter', sans-serif;
    font-weight: 700;
    letter-spacing: -0.025em;
    color: var(--foreground);
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: color 0.15s ease;
}

a:hover {
    color: oklch(35% .15 25);
}

/* Login Page */
.login-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    background: linear-gradient(135deg, oklch(98% .005 260), oklch(96% .01 260));
}

.login-card {
    width: 100%;
    max-width: 400px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: calc(var(--radius) + 8px);
    padding: 2.5rem;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.1);
}

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

.login-logo {
    height: 48px;
    margin-bottom: 1.5rem;
}

.login-title {
    font-family: 'Poppins', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--foreground);
    margin-bottom: 0.5rem;
}

.login-subtitle {
    color: var(--muted-foreground);
    font-size: 0.9rem;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.625rem 1.25rem;
    border-radius: var(--radius);
    font-weight: 500;
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.15s ease;
    border: none;
    text-decoration: none;
    white-space: nowrap;
}

.btn svg {
    width: 16px;
    height: 16px;
}

.btn-primary {
    background: var(--primary);
    color: var(--primary-foreground);
}

.btn-primary:hover {
    background: oklch(35% .15 25);
    color: var(--primary-foreground);
}

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

.form-label {
    display: block;
    font-weight: 500;
    font-size: 0.875rem;
    margin-bottom: 0.375rem;
    color: var(--foreground);
}

.form-control {
    width: 100%;
    padding: 0.625rem 0.875rem;
    background: var(--card);
    border: 1px solid var(--input);
    border-radius: var(--radius);
    color: var(--foreground);
    font-size: 0.875rem;
    transition: all 0.15s ease;
    font-family: inherit;
}

.form-control:focus {
    outline: none;
    border-color: var(--ring);
    box-shadow: 0 0 0 3px oklch(45% .18 25 / 0.15);
}

.form-control::placeholder {
    color: var(--muted-foreground);
}

select.form-control {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    padding-right: 2.5rem;
}

/* Alerts */
.alert {
    padding: 1rem;
    border-radius: var(--radius);
    margin-bottom: 1rem;
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    border: 1px solid;
}

.alert svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    margin-top: 1px;
}

.alert-error {
    background: oklch(98% .01 25);
    border-color: oklch(90% .05 25);
    color: var(--destructive);
}

/* Responsive */
@media (max-width: 480px) {
    .login-container {
        padding: 1rem;
    }
    .login-card {
        padding: 1.5rem;
    }
}
