/* Stitch Design Tokens & Custom CSS */
body {
    background-color: #000000;
    color: #e2e2e2;
}

.grid-bg {
    background-size: 40px 40px;
    background-image: 
        linear-gradient(to right, #262626 1px, transparent 1px),
        linear-gradient(to bottom, #262626 1px, transparent 1px);
    opacity: 0.2;
}

.auth-container {
    border: 1px solid #262626;
    background-color: #0D0E0F;
}

/* Input Fields (Login Page & Shared Inputs) */
.input-field {
    background-color: #0D0E0F !important;
    border: 1px solid #262626 !important;
    color: #e2e2e2 !important;
    caret-color: #FF6A00 !important;
    outline: none !important;
    box-shadow: none !important;
    transition: border-color 0.2s ease, box-shadow 0.2s ease !important;
}

.input-field::placeholder {
    color: #666666 !important;
    opacity: 1 !important;
}

.input-field:focus {
    outline: none !important;
    border-color: #FF6A00 !important;
    box-shadow: 0 0 0 1px #FF6A00, 0 0 10px rgba(255, 106, 0, 0.4) !important;
}

/* Cross-Browser Autofill Overrides (Chrome, Edge, Safari, Opera) */
.input-field:-webkit-autofill,
.input-field:-webkit-autofill:hover, 
.input-field:-webkit-autofill:focus, 
.input-field:-webkit-autofill:active {
    -webkit-box-shadow: 0 0 0 1000px #0D0E0F inset !important;
    -webkit-text-fill-color: #e2e2e2 !important;
    caret-color: #FF6A00 !important;
    border: 1px solid #262626 !important;
    transition: background-color 5000s ease-in-out 0s !important;
}

.input-field:-webkit-autofill:focus {
    border-color: #FF6A00 !important;
    -webkit-box-shadow: 0 0 0 1000px #0D0E0F inset, 0 0 0 1px #FF6A00, 0 0 10px rgba(255, 106, 0, 0.4) !important;
}

/* Firefox Autofill Overrides */
.input-field:autofill {
    background-color: #0D0E0F !important;
    color: #e2e2e2 !important;
    border: 1px solid #262626 !important;
}

.input-field:autofill:focus {
    border-color: #FF6A00 !important;
    box-shadow: 0 0 0 1px #FF6A00, 0 0 10px rgba(255, 106, 0, 0.4) !important;
}

.btn-primary {
    background-color: #FF6A00;
    color: #000000;
}

.btn-primary:hover {
    background-color: #e65c00;
}

.hairline-border {
    border: 1px solid #262626;
}

.hairline-border-b {
    border-bottom: 1px solid #262626;
}

.hairline-border-t {
    border-top: 1px solid #262626;
}

.progress-bar-stripes {
    background-image: linear-gradient(
        45deg,
        rgba(255, 255, 255, 0.15) 25%,
        transparent 25%,
        transparent 50%,
        rgba(255, 255, 255, 0.15) 50%,
        rgba(255, 255, 255, 0.15) 75%,
        transparent 75%,
        transparent
    );
    background-size: 1rem 1rem;
    animation: progress-stripes 1s linear infinite;
}

@keyframes progress-stripes {
    from { background-position: 1rem 0; }
    to { background-position: 0 0; }
}

.pulse-text {
    animation: pulse-opacity 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes pulse-opacity {
    0%, 100% { opacity: 1; }
    50% { opacity: .5; }
}

.pulse-error {
    animation: pulseError 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes pulseError {
    0%, 100% { opacity: 1; border-color: #FF3B30; }
    50% { opacity: .5; border-color: rgba(255, 59, 48, 0.3); }
}

/* View utility classes */
.hidden-view {
    display: none !important;
}
