@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Montserrat:wght@600;700;800;900&display=swap');

*,
*::before,
*::after {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
}

body {
    background-color: #0f1014;
    color: #d1d5db;
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.legal-page {
    max-width: 48rem;
    margin: 0 auto;
    padding: 1.5rem;
}

@media (min-width: 768px) {
    .legal-page {
        padding: 3rem;
    }
}

.legal-page h1 {
    color: #fff;
    font-size: 1.875rem;
    font-weight: 700;
    margin: 0 0 1.5rem;
    line-height: 1.2;
}

.legal-page .legal-meta {
    color: #6b7280;
    font-size: 0.875rem;
    margin: 0 0 2rem;
}

.legal-content {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    font-size: 0.875rem;
    line-height: 1.625;
}

@media (min-width: 768px) {
    .legal-content {
        font-size: 1rem;
    }
}

.legal-content section h2 {
    color: #fff;
    font-size: 1.25rem;
    font-weight: 700;
    margin: 0 0 0.5rem;
    line-height: 1.3;
}

.legal-content section p {
    margin: 0;
}

.legal-content ul {
    list-style: disc;
    padding-left: 1.25rem;
    margin: 0;
}

.legal-content ul li + li {
    margin-top: 0.25rem;
}

.legal-content strong {
    color: #f3f4f6;
}

.legal-back {
    margin-top: 3rem;
    padding-top: 1.5rem;
    border-top: 1px solid #1f2937;
}

.legal-back a {
    color: #ef4444;
    font-weight: 700;
    text-decoration: none;
    transition: color 0.2s;
}

.legal-back a:hover {
    color: #f87171;
}

.auth-page {
    min-height: 100vh;
    min-height: 100dvh;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

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

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

.auth-brand h1 {
    font-family: 'Montserrat', sans-serif;
    font-size: 2.25rem;
    font-weight: 900;
    letter-spacing: -0.05em;
    margin: 0;
    line-height: 1;
}

.auth-brand h1 .accent {
    background: linear-gradient(to right, #ef4444, #f97316);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.auth-card {
    background: #16181f;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 2rem;
    padding: 2rem;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.7);
}

.auth-card.text-center {
    text-align: center;
}

.auth-card h2 {
    margin: 0 0 0.5rem;
    font-weight: 700;
    line-height: 1.3;
}

.auth-card h2.size-md {
    font-size: 1.25rem;
}

.auth-card h2.size-lg {
    font-size: 1.5rem;
}

.auth-card h2.center {
    text-align: center;
    margin-bottom: 1.5rem;
}

.auth-card .lead {
    color: #9ca3af;
    font-size: 0.875rem;
    margin: 0 0 1.5rem;
}

.auth-card .lead.relaxed {
    line-height: 1.625;
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.auth-field {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.auth-field label {
    font-size: 0.625rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #9ca3af;
    font-weight: 700;
    margin-left: 0.25rem;
}

.auth-input {
    width: 100%;
    padding: 1rem;
    background: rgba(17, 24, 39, 0.5);
    border: 1px solid #374151;
    border-radius: 1rem;
    color: #fff;
    font: inherit;
    box-shadow: inset 0 2px 4px 0 rgba(0, 0, 0, 0.06);
    transition: border-color 0.2s;
    -webkit-appearance: none;
    appearance: none;
}

.auth-input::placeholder {
    color: #4b5563;
}

.auth-input:focus {
    outline: none;
    border-color: #ef4444;
}

.auth-field-error {
    color: #ef4444;
    font-size: 0.75rem;
    margin-top: 0.25rem;
}

.auth-helper {
    margin-top: 0.5rem;
    padding-left: 0.25rem;
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.auth-helper li {
    display: flex;
    align-items: center;
    font-size: 0.625rem;
    color: #6b7280;
}

.auth-helper li::before {
    content: '';
    width: 0.25rem;
    height: 0.25rem;
    background: #4b5563;
    border-radius: 9999px;
    margin-right: 0.5rem;
}

.auth-button {
    width: 100%;
    padding: 1rem;
    border: none;
    border-radius: 1rem;
    font: inherit;
    font-weight: 700;
    color: #fff;
    cursor: pointer;
    transition: transform 0.15s, background 0.2s;
    text-align: center;
    text-decoration: none;
    display: block;
}

.auth-button:active {
    transform: scale(0.95);
}

.auth-button-primary {
    background: linear-gradient(to right, #dc2626, #ef4444 50%, #f97316);
    box-shadow: 0 10px 15px -3px rgba(220, 38, 38, 0.3);
    margin-top: 0.5rem;
}

.auth-button-primary:hover {
    background: linear-gradient(to right, #ef4444, #fb923c);
}

.auth-button-secondary {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.05);
    color: #d1d5db;
}

.auth-button-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
}

.auth-form .auth-button-primary {
    margin-top: 0.5rem;
}

.auth-card-actions {
    margin-top: 1.5rem;
    text-align: center;
}

.auth-back-link {
    font-size: 0.875rem;
    color: #6b7280;
    text-decoration: none;
    transition: color 0.2s;
}

.auth-back-link:hover {
    color: #fff;
}

.auth-icon-circle {
    width: 4rem;
    height: 4rem;
    border-radius: 9999px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    font-size: 1.875rem;
}

.auth-icon-circle.info {
    background: rgba(34, 197, 94, 0.1);
    color: #22c55e;
    border: 1px solid rgba(34, 197, 94, 0.2);
}

.auth-icon-circle.success {
    background: linear-gradient(to top right, #22c55e, #34d399);
    color: #fff;
    box-shadow: 0 10px 15px -3px rgba(34, 197, 94, 0.2);
}
