/* TokuGo Authentication Styles
 * Layout for the auth and error pages. Colours come from design-system.css
 * tokens; Bootstrap components are themed there.
 */

body {
    background:
        radial-gradient(ellipse 80% 50% at 50% 0%, color-mix(in oklch, var(--primary) 14%, transparent), transparent 70%),
        var(--background);
    min-height: 100vh;
}

/* Brand Logo */
.brand-logo {
    margin-bottom: 2rem;
}

.brand-logo i {
    color: var(--primary);
    margin-bottom: 1rem;
}

.auth-logo {
    height: 100px;
    width: auto;
    max-width: 250px;
    object-fit: contain;
    border-radius: var(--radius-sm);
}

.brand-logo h2 {
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.brand-logo p {
    font-size: 1.1rem;
    margin-bottom: 0;
}

/* Auth Card */
.card {
    border-radius: var(--radius-xl);
    backdrop-filter: blur(10px);
}

.card-body {
    padding: 2.5rem;
    border-radius: var(--radius-xl);
}

/* Form Styles */
.form-label {
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.form-control {
    border-width: 1px;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    transition: all 0.3s ease;
    min-height: 48px;
    line-height: 1.5;
}

.form-control:focus {
    outline: none;
}

/* Ensure inputs are not disabled */
.form-control:not([readonly]):not([disabled]) {
    cursor: text;
    user-select: text;
    pointer-events: auto;
}

.input-group-text {
    border-right: none;
}

.input-group .form-control {
    border-left: none;
}

.input-group:focus-within .input-group-text {
    border-color: var(--ring);
    background-color: var(--accent);
    color: var(--accent-foreground);
}

/* Buttons */
.btn {
    font-weight: 600;
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    transition: all 0.3s ease;
    letter-spacing: 0.01em;
}

.btn-primary:hover {
    transform: translateY(-2px);
}

.btn-outline-primary:hover {
    transform: translateY(-2px);
}

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1.1rem;
}

/* Form Check */
.form-check-label {
    font-weight: 500;
}

/* Links */
a {
    font-weight: 500;
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    text-decoration: underline;
}

/* Alerts */
.alert {
    font-weight: 500;
    margin-bottom: 1.5rem;
    border-left-width: 4px;
}

.alert-success { border-left-color: var(--conscious); }
.alert-danger { border-left-color: var(--destructive); }
.alert-warning { border-left-color: var(--warning); }
.alert-info { border-left-color: var(--info); }

.alert ul {
    margin-bottom: 0;
    padding-left: 1.5rem;
}

/* Form Text */
.form-text {
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

/* Divider */
hr {
    border: none;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--border), transparent);
    margin: 2rem 0;
    opacity: 1;
}

/* Success Icons */
.fa-check-circle {
    color: var(--conscious);
}

/* Responsive Design */
@media (max-width: 576px) {
    .card-body {
        padding: 2rem 1.5rem;
    }

    .brand-logo i {
        font-size: 2.5rem !important;
    }

    .brand-logo h2 {
        font-size: 1.75rem;
    }

    .btn-lg {
        padding: 0.875rem 1.5rem;
        font-size: 1rem;
    }
}

/* Animation */
@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.card {
    animation: slideInUp 0.6s ease-out;
}

/* Loading State */
.btn.loading {
    position: relative;
    color: transparent;
}

.btn.loading::after {
    content: '';
    position: absolute;
    width: 1rem;
    height: 1rem;
    top: 50%;
    left: 50%;
    margin-left: -0.5rem;
    margin-top: -0.5rem;
    border: 2px solid transparent;
    border-top-color: var(--primary-foreground);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
