/* Utility Pages Styles */

/* Font Imports */
@import url("https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Share+Tech+Mono&display=swap");

/* Base variables - these might overlap with your main styles.css.
   Ensure they are consistent or scoped if necessary.
   For simplicity, I'm including a basic set here. */
:root {
    --background: #0f172a;
    --foreground: #f8fafc;
    --card: #131c31;
    /* Used for panel background */
    --primary: #00a3ff;
    --accent: #0dd3ff;
    --secondary: #1e293b;
    /* Used for borders or secondary elements */
    --muted-foreground: #94a3b8;
    --discord: #5865f2;
    --discord-hover: #4752c4;
    --success: #10b981;
    --success-glow: rgba(16, 185, 129, 0.5);
    --radius: 0.5rem;
    --transition-fast: 0.15s;
    --transition-normal: 0.2s;
}

/* Common Body Styles for Utility Pages */
body.utility-page {
    font-family: "Inter", sans-serif;
    color: var(--foreground);
    min-height: 100vh;
    background: linear-gradient(135deg, var(--background) 0%, #0a1022 100%);
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body.utility-page *,
body.utility-page *::before,
body.utility-page *::after {
    box-sizing: border-box;
}

body.utility-page::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: radial-gradient(circle at 20% 30%, rgba(0, 163, 255, 0.15) 0%, transparent 25%),
        radial-gradient(circle at 80% 70%, rgba(13, 211, 255, 0.1) 0%, transparent 20%);
    z-index: -2;
}

body.utility-page::after {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg stroke='%2300a3ff' stroke-width='0.5' stroke-opacity='0.15'%3E%3Cpath d='M30 30 L30 0 M30 30 L0 30 M30 30 L60 30 M30 30 L30 60'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E"),
        url("data:image/svg+xml,%3Csvg width='20' height='20' viewBox='0 0 20 20' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%2300a3ff' fill-opacity='0.1'%3E%3Ccircle cx='10' cy='10' r='1'/%3E%3C/g%3E%3C/svg%3E");
    z-index: -1;
}

/* Common Particle Styles */
.particles-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: -1;
}

.particle {
    position: absolute;
    border-radius: 50%;
    background: rgba(0, 163, 255, 0.2);
    box-shadow: 0 0 10px 2px rgba(0, 163, 255, 0.2);
    pointer-events: none;
}

/* Common Utility Panel Styles */
.utility-panel {
    width: 100%;
    max-width: 500px;
    /* Default max-width, can be overridden */
    background-color: rgba(19, 28, 49, 0.9);
    border-radius: var(--radius);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3), 0 0 40px rgba(0, 163, 255, 0.15);
    backdrop-filter: blur(8px);
    padding: 2.5rem;
    text-align: center;
    border: 1px solid rgba(30, 41, 59, 0.5);
    position: relative;
    overflow: hidden;
    z-index: 1;
    animation: fadeIn 0.6s ease-out;
}

.utility-panel .top-line {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(0, 163, 255, 0.5), transparent);
    z-index: 2;
}

.utility-panel::before {
    /* Animated border */
    content: "";
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg,
            rgba(0, 163, 255, 0.3),
            rgba(13, 211, 255, 0.3),
            rgba(0, 163, 255, 0.3),
            rgba(13, 211, 255, 0.3));
    background-size: 400% 400%;
    z-index: -1;
    border-radius: calc(var(--radius) + 2px);
    animation: borderGradient 8s linear infinite;
    opacity: 0.6;
}

.utility-panel::after {
    /* Inner background */
    content: "";
    position: absolute;
    top: 1px;
    left: 1px;
    right: 1px;
    bottom: 1px;
    background-color: rgba(19, 28, 49, 0.95);
    border-radius: var(--radius);
    z-index: -1;
}

.utility-panel .glow-effect {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background: radial-gradient(circle at center, rgba(0, 163, 255, 0.1) 0%, transparent 70%);
    opacity: 0;
    z-index: -1;
    animation: pulseGlow 4s ease-in-out infinite;
}

.utility-panel-footer {
    margin-top: 2rem;
    color: var(--muted-foreground);
    font-size: 0.875rem;
    opacity: 0.8;
    position: relative;
}

.utility-panel-footer::after {
    content: "";
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 30px;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--primary), transparent);
    animation: widthPulse 2s ease-in-out infinite;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes borderGradient {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

@keyframes pulseGlow {

    /* Renamed from pulse to avoid conflict if main styles.css has it */
    0% {
        opacity: 0;
        transform: scale(0.8);
    }

    50% {
        opacity: 0.3;
        transform: scale(1.2);
    }

    100% {
        opacity: 0;
        transform: scale(0.8);
    }
}

@keyframes floatIcon {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

@keyframes gradientText {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

@keyframes widthPulse {

    0%,
    100% {
        width: 30px;
        opacity: 0.5;
    }

    50% {
        width: 100px;
        opacity: 1;
    }
}

@keyframes shine {
    0% {
        left: -100%;
    }

    100% {
        left: 100%;
    }
}

/* --- Page-Specific Styles --- */

/* 404 Page Styles */
.page-404 .utility-panel {
    /* .error-container */
    /* any specific overrides for 404 panel size/padding if needed */
}

.page-404 .error-icon {
    font-size: 3rem;
    color: var(--primary);
    filter: drop-shadow(0 0 12px var(--primary));
    margin-bottom: 1.5rem;
    animation: floatIcon 3s ease-in-out infinite;
}

.page-404 .error-code {
    font-size: 8rem;
    font-weight: 800;
    line-height: 1;
    margin-bottom: 1rem;
    position: relative;
    background: linear-gradient(to right, var(--primary), var(--accent));
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: gradientText 4s ease infinite, glitch 5s ease-in-out infinite;
    text-shadow: 0 0 20px rgba(0, 163, 255, 0.5);
}

.page-404 .error-title {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--foreground);
}

.page-404 .error-message {
    font-size: 1rem;
    color: var(--muted-foreground);
    margin-bottom: 2rem;
    line-height: 1.6;
}

.page-404 .home-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 0.875rem 1.5rem;
    background-color: var(--primary);
    color: white;
    border: none;
    border-radius: var(--radius);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-fast) ease;
    box-shadow: 0 4px 15px rgba(0, 163, 255, 0.4);
    position: relative;
    overflow: hidden;
    text-decoration: none;
}

.page-404 .home-button::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: 0.5s;
}

.page-404 .home-button:hover {
    background-color: rgba(0, 163, 255, 0.9);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 163, 255, 0.5);
}

.page-404 .home-button:hover::before {
    left: 100%;
    animation: shine 1.5s infinite;
}

.page-404 .home-button:active {
    transform: translateY(0);
    box-shadow: 0 2px 10px rgba(0, 163, 255, 0.3);
}

.page-404 .circuit-lines {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: -1;
    opacity: 0.15;
    pointer-events: none;
}

.page-404 .circuit-line {
    position: absolute;
    background-color: var(--primary);
    border-radius: 2px;
}

.page-404 .circuit-line-1 {
    width: 2px;
    height: 40%;
    top: -10%;
    left: 15%;
    transform: rotate(25deg);
}

.page-404 .circuit-line-2 {
    width: 2px;
    height: 30%;
    bottom: -10%;
    right: 20%;
    transform: rotate(-15deg);
}

.page-404 .circuit-line-3 {
    width: 40%;
    height: 2px;
    top: 20%;
    right: -10%;
    transform: rotate(15deg);
}

.page-404 .circuit-line-4 {
    width: 30%;
    height: 2px;
    bottom: 30%;
    left: -5%;
    transform: rotate(-10deg);
}

@keyframes glitch {

    0%,
    100% {
        transform: translateX(0);
    }

    5%,
    15%,
    25% {
        transform: translateX(-2px);
    }

    10%,
    20%,
    30% {
        transform: translateX(2px);
    }

    35% {
        transform: translateX(0);
    }
}

/* Login Page Styles */
.page-login .utility-panel {
    /* .login-container */
    max-width: 450px;
}

.page-login .login-logo {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 2.5rem;
    position: relative;
}

.page-login .logo-icon {
    font-size: 4rem;
    color: var(--primary);
    filter: drop-shadow(0 0 12px var(--primary));
    margin-bottom: 1rem;
    animation: floatIcon 3s ease-in-out infinite;
}

.page-login .logo-title {
    font-size: 2.5rem;
    font-weight: 700;
    letter-spacing: -0.025em;
    background: linear-gradient(to right, var(--primary), var(--accent));
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 0.5rem;
    animation: gradientText 4s ease infinite;
}

.page-login .logo-subtitle {
    font-size: 0.875rem;
    color: var(--muted-foreground);
    max-width: 80%;
    margin: 0 auto;
}

.page-login .discord-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    width: 100%;
    padding: 0.875rem 1.5rem;
    background-color: var(--discord);
    color: white;
    border: none;
    border-radius: var(--radius);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-fast) ease;
    margin: 2rem 0;
    box-shadow: 0 4px 15px rgba(88, 101, 242, 0.4);
    position: relative;
    overflow: hidden;
    text-decoration: none;
}

.page-login .discord-button::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: 0.5s;
}

.page-login .discord-button:hover {
    background-color: var(--discord-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(88, 101, 242, 0.5);
}

.page-login .discord-button:hover::before {
    left: 100%;
    animation: shine 1.5s infinite;
}

.page-login .discord-button:active {
    transform: translateY(0);
    box-shadow: 0 2px 10px rgba(88, 101, 242, 0.3);
}

.page-login .discord-icon {
    font-size: 1.25rem;
}

/* Access Page Styles */
.page-access .auth-container {
    /* This is the main wrapper, not the panel */
    width: 100%;
    height: 100vh;
    /* Should be body already */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    /* Body already has this */
}

.page-access .grid-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: linear-gradient(rgba(0, 163, 255, 0.1) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 163, 255, 0.1) 1px, transparent 1px);
    background-size: 40px 40px;
    perspective: 1000px;
    transform-style: preserve-3d;
    animation: gridPulse 8s infinite linear;
    z-index: -1;
    /* Should be below .auth-content */
}

.page-access .scan-line {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, transparent, var(--primary), transparent);
    box-shadow: 0 0 20px 5px var(--primary);
    z-index: 10;
    animation: scanAnimation 3s ease-in-out;
}

.page-access .auth-content {
    /* This is the .utility-panel equivalent */
    position: relative;
    z-index: 5;
    /* Above grid, below scan line if it's on top */
    text-align: center;
    max-width: 800px;
    /* Wider panel for access page */
    padding: 2rem;
    /* Inherits .utility-panel styles if we add class, or define similar here */
    background-color: rgba(19, 28, 49, 0.9);
    border-radius: var(--radius);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3), 0 0 40px rgba(0, 163, 255, 0.15);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(30, 41, 59, 0.5);
    overflow: hidden;
    animation: fadeIn 0.6s ease-out;
}

.page-access .access-text {
    font-family: "Share Tech Mono", monospace;
    font-size: 4rem;
    font-weight: 700;
    letter-spacing: 1rem;
    text-transform: uppercase;
    color: transparent;
    position: relative;
    margin-bottom: 2rem;
    text-shadow: 0 0 20px var(--success-glow);
    animation: textReveal 3s forwards;
}

.page-access .verification-ui {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 3rem;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeIn 0.5s 1.5s forwards;
}

.page-access .progress-container {
    width: 100%;
    max-width: 600px;
}

.page-access .progress-item {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
}

.page-access .progress-label {
    font-family: "Share Tech Mono", monospace;
    font-size: 0.9rem;
    width: 180px;
    text-align: right;
    margin-right: 1rem;
    color: var(--muted-foreground);
}

.page-access .progress-bar-container {
    flex: 1;
    height: 8px;
    background-color: rgba(30, 41, 59, 0.5);
    border-radius: 4px;
    overflow: hidden;
    position: relative;
}

.page-access .progress-bar {
    height: 100%;
    width: 0;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    border-radius: 4px;
    position: relative;
    animation: progressAnimation 2s forwards;
}

.page-access .progress-bar::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    animation: progressShine 1.5s infinite;
}

.page-access .progress-status {
    font-family: "Share Tech Mono", monospace;
    font-size: 0.9rem;
    margin-left: 1rem;
    width: 100px;
    color: var(--success);
}

.page-access .verification-steps {
    width: 100%;
    max-width: 600px;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.page-access .verification-step {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem 1rem;
    background-color: rgba(19, 28, 49, 0.5);
    border-radius: var(--radius);
    border: 1px solid rgba(30, 41, 59, 0.5);
    opacity: 0;
    transform: translateX(-20px);
}

.page-access .verification-step:nth-child(1) {
    animation: stepIn 0.3s 2s forwards;
}

.page-access .verification-step:nth-child(2) {
    animation: stepIn 0.3s 2.3s forwards;
}

.page-access .verification-step:nth-child(3) {
    animation: stepIn 0.3s 2.6s forwards;
}

.page-access .verification-step:nth-child(4) {
    animation: stepIn 0.3s 2.9s forwards;
}

.page-access .step-icon {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background-color: var(--success);
    color: var(--background);
    font-size: 0.8rem;
}

.page-access .step-text {
    font-family: "Share Tech Mono", monospace;
    font-size: 0.9rem;
    flex: 1;
}

.page-access .step-status {
    font-family: "Share Tech Mono", monospace;
    font-size: 0.8rem;
    color: var(--success);
}

.page-access .biometric-scan {
    position: relative;
    width: 120px;
    height: 120px;
    margin: 2rem auto;
    opacity: 0;
    animation: fadeIn 0.5s 3.2s forwards;
}

.page-access .fingerprint {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.7;
}

.page-access .fingerprint i {
    font-size: 5rem;
    color: var(--primary);
    filter: drop-shadow(0 0 10px rgba(0, 163, 255, 0.5));
}

.page-access .scan-effect {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 10px;
    background: linear-gradient(to bottom, rgba(0, 163, 255, 0.8), rgba(0, 163, 255, 0.4), transparent);
    box-shadow: 0 0 15px rgba(0, 163, 255, 0.5);
    animation: scanEffect 2s 3.3s forwards;
    opacity: 0;
}

.page-access .redirect-message {
    font-family: "Share Tech Mono", monospace;
    margin-top: 2rem;
    font-size: 1rem;
    color: var(--muted-foreground);
    opacity: 0;
    animation: fadeIn 0.5s 5s forwards;
}

.page-access .countdown {
    font-weight: bold;
    color: var(--primary);
}

.page-access .binary-rain {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    /* Below .auth-content */
    overflow: hidden;
}

.page-access .binary-column {
    position: absolute;
    top: -20%;
    color: rgba(0, 163, 255, 0.15);
    font-family: "Share Tech Mono", monospace;
    font-size: 1.2rem;
    line-height: 1;
    white-space: nowrap;
    animation-name: binaryRain;
    animation-timing-function: linear;
    animation-iteration-count: infinite;
}

.page-access .glitch-effect {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: transparent;
    z-index: 20;
    /* Above everything */
    pointer-events: none;
    animation: glitchEffect 0.5s 1s;
}

@keyframes gridPulse {

    0%,
    100% {
        opacity: 0.3;
        background-size: 40px 40px;
    }

    50% {
        opacity: 0.6;
        background-size: 45px 45px;
    }
}

@keyframes scanAnimation {
    0% {
        top: -10px;
        opacity: 0;
    }

    20% {
        opacity: 1;
    }

    80% {
        opacity: 1;
    }

    100% {
        top: 100%;
        opacity: 0;
    }
}

@keyframes textReveal {
    0% {
        color: transparent;
        letter-spacing: 2rem;
        filter: blur(10px);
        opacity: 0;
    }

    50% {
        color: var(--success);
        letter-spacing: 1rem;
        filter: blur(0);
        opacity: 1;
    }

    60% {
        color: var(--success);
        text-shadow: 0 0 20px var(--success-glow);
    }

    65% {
        color: transparent;
        text-shadow: 0 0 40px var(--success-glow);
    }

    70% {
        color: var(--success);
        text-shadow: 0 0 20px var(--success-glow);
    }

    75% {
        color: transparent;
        text-shadow: 0 0 40px var(--success-glow);
    }

    80%,
    100% {
        color: var(--success);
        letter-spacing: 1rem;
        filter: blur(0);
        opacity: 1;
        text-shadow: 0 0 20px var(--success-glow);
    }
}

@keyframes progressAnimation {
    0% {
        width: 0;
    }

    60% {
        width: 70%;
    }

    80% {
        width: 85%;
    }

    100% {
        width: 100%;
    }
}

@keyframes progressShine {
    0% {
        transform: translateX(-100%);
    }

    100% {
        transform: translateX(100%);
    }
}

@keyframes stepIn {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes scanEffect {
    0% {
        top: 0;
        opacity: 1;
    }

    100% {
        top: 100%;
        opacity: 1;
    }
}

@keyframes binaryRain {
    0% {
        transform: translateY(-100%);
    }

    100% {
        transform: translateY(100vh);
    }
}

@keyframes glitchEffect {

    0%,
    100% {
        opacity: 0;
    }

    10%,
    15%,
    20%,
    25%,
    30%,
    35%,
    40%,
    45% {
        opacity: 1;
        background: linear-gradient(0deg,
                rgba(0, 163, 255, 0.1) 25%,
                transparent 25%,
                transparent 50%,
                rgba(0, 163, 255, 0.1) 50%,
                rgba(0, 163, 255, 0.1) 75%,
                transparent 75%);
        background-size: 100% 4px;
        transform: translateX(2px);
    }

    13%,
    18%,
    23%,
    28%,
    33%,
    38%,
    43%,
    48% {
        opacity: 1;
        background: linear-gradient(0deg,
                rgba(16, 185, 129, 0.1) 25%,
                transparent 25%,
                transparent 50%,
                rgba(16, 185, 129, 0.1) 50%,
                rgba(16, 185, 129, 0.1) 75%,
                transparent 75%);
        background-size: 100% 8px;
        transform: translateX(-2px);
    }
}

/* Maintenance Page Styles */
.page-maintenance .utility-panel {
    /* .maintenance-container */
    /* any specific overrides for maintenance panel */
}

.page-maintenance .maintenance-icon-container {
    position: relative;
    width: 100px;
    height: 100px;
    margin: 0 auto 1.5rem;
}

.page-maintenance .maintenance-icon {
    font-size: 3.5rem;
    color: var(--primary);
    filter: drop-shadow(0 0 12px var(--primary));
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.page-maintenance .gear-icon-1 {
    animation: spin 10s linear infinite;
}

.page-maintenance .gear-icon-2 {
    font-size: 2rem;
    top: 25%;
    left: 70%;
    animation: spin-reverse 7s linear infinite;
}

.page-maintenance .maintenance-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1rem;
    background: linear-gradient(to right, var(--primary), var(--accent));
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: gradientText 4s ease infinite;
}

.page-maintenance .maintenance-message {
    font-size: 1rem;
    color: var(--foreground);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.page-maintenance .maintenance-details {
    font-size: 0.9rem;
    color: var(--muted-foreground);
    margin-bottom: 2rem;
    line-height: 1.6;
}

.page-maintenance .progress-container {
    /* Different from access page's progress */
    width: 100%;
    height: 8px;
    background-color: var(--secondary);
    border-radius: 4px;
    margin: 1.5rem 0;
    overflow: hidden;
    position: relative;
}

.page-maintenance .progress-bar {
    height: 100%;
    width: 75%;
    /* Example width */
    background: linear-gradient(90deg, var(--primary), var(--accent));
    border-radius: 4px;
    position: relative;
    animation: maintenanceProgressAnimation 2s ease-in-out infinite;
    /* Different animation */
}

.page-maintenance .time-estimate {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.page-maintenance .time-icon {
    color: var(--primary);
}

.page-maintenance .time-text {
    font-size: 0.9rem;
    color: var(--foreground);
}

.page-maintenance .blueprint-grid {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: -1;
    opacity: 0.05;
    pointer-events: none;
}

.page-maintenance .blueprint-line {
    position: absolute;
    background-color: var(--primary);
}

.page-maintenance .blueprint-horizontal {
    width: 100%;
    height: 1px;
}

.page-maintenance .blueprint-vertical {
    width: 1px;
    height: 100%;
}

@keyframes spin {
    0% {
        transform: translate(-50%, -50%) rotate(0deg);
    }

    100% {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

@keyframes spin-reverse {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(-360deg);
    }
}

@keyframes maintenanceProgressAnimation {

    /* Was progressAnimation */
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

/* Responsive Styles for Utility Pages */
@media (max-width: 480px) {
    .utility-panel {
        max-width: 90%;
        padding: 2rem 1.5rem;
    }

    .page-404 .error-code {
        font-size: 6rem;
    }

    .page-404 .error-icon {
        font-size: 2.5rem;
    }

    .page-404 .error-title {
        font-size: 1.5rem;
    }

    .page-login .logo-icon {
        font-size: 3rem;
    }

    .page-login .logo-title {
        font-size: 2rem;
    }

    .page-access .access-text {
        font-size: 1.8rem;
        letter-spacing: 0.3rem;
    }

    @keyframes textReveal {

        /* Access page specific responsive textReveal */
        0% {
            color: transparent;
            letter-spacing: 0.6rem;
            filter: blur(10px);
            opacity: 0;
        }

        50%,
        100% {
            color: var(--success);
            letter-spacing: 0.3rem;
            filter: blur(0);
            opacity: 1;
            text-shadow: 0 0 20px var(--success-glow);
        }
    }

    .page-access .verification-ui {
        gap: 1rem;
    }

    .page-access .progress-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .page-access .progress-label {
        width: 100%;
        text-align: left;
        margin-right: 0;
    }

    .page-access .progress-status {
        margin-left: 0;
    }

    .page-access .auth-content {
        max-width: 90%;
        padding: 1.5rem;
    }

    .page-maintenance .maintenance-title {
        font-size: 1.75rem;
    }
}