/* UHO Portal V4.1 - Neon Cyberpunk Branding */

/* Import Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Black+Ops+One&family=Anonymous+Pro:ital,wght@0,400;0,700;1,400;1,700&display=swap');

/* CSS Custom Properties - Brand Colors */
:root {
    --uho-black: #000000;
    --uho-white: #ffffff;
    --uho-neon-orange: #ff6600;
    --uho-neon-cyan: #00ffff;
    --uho-neon-red: #ff0000;
    --uho-neon-blue: #0080ff;
    --uho-neon-green: #00ff00;
    
    /* Typography */
    --uho-font-display: 'Black Ops One', cursive;
    --uho-font-body: 'Anonymous Pro', monospace;
    
    /* Shadows and Glows */
    --uho-glow-orange: 0 0 20px var(--uho-neon-orange);
    --uho-glow-cyan: 0 0 20px var(--uho-neon-cyan);
    --uho-glow-red: 0 0 20px var(--uho-neon-red);
    --uho-glow-blue: 0 0 20px var(--uho-neon-blue);
    --uho-glow-green: 0 0 20px var(--uho-neon-green);
    
    /* Transitions */
    --uho-transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Base Styles */
.uho-portal,
.uho-card,
.uho-login,
.uho-auth-container {
    font-family: var(--uho-font-body);
    background: var(--uho-black);
    color: var(--uho-white);
    line-height: 1.6;
}

/* Ensure all text elements use Anonymous Pro */
.uho-portal p,
.uho-portal div,
.uho-portal span,
.uho-portal label,
.uho-portal input,
.uho-portal textarea,
.uho-portal select,
.uho-portal button,
.uho-portal .button,
.uho-portal .description,
.uho-portal .form-field,
.uho-portal .upload-form,
.uho-portal .file-info {
    font-family: var(--uho-font-body) !important;
}

/* Description text styling */
.uho-portal .description,
.uho-portal p.description,
.uho-portal .form-field .description {
    font-family: var(--uho-font-body) !important;
    font-size: 0.9rem;
    color: var(--uho-neon-cyan);
    opacity: 0.8;
    margin-top: 0.5rem;
    line-height: 1.4;
}

/* Hide any file path information for security */
.uho-portal .description code,
.uho-portal .file-path,
.uho-portal .storage-path,
.uho-portal .upload-path,
.uho-portal .server-path,
.uho-portal .directory-path {
    display: none !important;
}

/* Security: Hide any technical details that might leak server info */
.uho-portal .technical-info,
.uho-portal .server-info,
.uho-portal .debug-info,
.uho-portal .path-info {
    display: none !important;
}

/* Typography - Headings use Black Ops One */
.uho-portal h1,
.uho-portal h2,
.uho-portal h3,
.uho-portal h4,
.uho-portal h5,
.uho-portal h6,
.uho-auth-container h1,
.uho-auth-container h2,
.uho-auth-container h3,
.uho-auth-container h4,
.uho-auth-container h5,
.uho-auth-container h6,
.uho-card h1,
.uho-card h2,
.uho-card h3,
.uho-card h4,
.uho-card h5,
.uho-card h6 {
    font-family: var(--uho-font-display) !important;
    color: var(--uho-white);
    text-shadow: 0 0 10px var(--uho-neon-cyan);
    margin-bottom: 1rem;
    letter-spacing: 0.05em;
}

.uho-portal h1 {
    font-size: 2.5rem;
    text-align: center;
    background: linear-gradient(45deg, var(--uho-neon-cyan), var(--uho-neon-blue));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.uho-portal h2 {
    font-size: 2rem;
    color: var(--uho-neon-orange);
    border-bottom: 2px solid var(--uho-neon-orange);
    padding-bottom: 0.5rem;
}

.uho-portal h3 {
    font-size: 1.5rem;
    color: var(--uho-neon-green);
}

/* Neon Glitch Effects */
@keyframes neon-flicker {
    0%, 19.999%, 22%, 62.999%, 64%, 64.999%, 70%, 100% {
        opacity: 0.99;
        filter: drop-shadow(0 0 1px var(--uho-neon-cyan)) 
                drop-shadow(0 0 15px var(--uho-neon-cyan)) 
                drop-shadow(0 0 2px var(--uho-neon-cyan));
    }
    20%, 21.999%, 63%, 63.999%, 65%, 69.999% {
        opacity: 0.4;
        filter: none;
    }
}

@keyframes neon-pulse {
    0%, 100% {
        box-shadow: 0 0 5px var(--uho-neon-orange),
                    0 0 10px var(--uho-neon-orange),
                    0 0 15px var(--uho-neon-orange);
    }
    50% {
        box-shadow: 0 0 10px var(--uho-neon-orange),
                    0 0 20px var(--uho-neon-orange),
                    0 0 30px var(--uho-neon-orange);
    }
}

@keyframes glitch {
    0% {
        transform: translate(0);
    }
    20% {
        transform: translate(-2px, 2px);
    }
    40% {
        transform: translate(-2px, -2px);
    }
    60% {
        transform: translate(2px, 2px);
    }
    80% {
        transform: translate(2px, -2px);
    }
    100% {
        transform: translate(0);
    }
}

/* Cards and Containers */
.uho-card {
    background: linear-gradient(135deg, #111111, #000000);
    border: 2px solid var(--uho-neon-cyan);
    border-radius: 8px;
    padding: 1.5rem;
    margin: 1rem 0;
    box-shadow: 0 0 20px rgba(0, 255, 255, 0.3);
    transition: var(--uho-transition);
    position: relative;
    overflow: hidden;
}

.uho-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 255, 255, 0.1), transparent);
    transition: left 0.5s;
}

.uho-card:hover::before {
    left: 100%;
}

.uho-card:hover {
    border-color: var(--uho-neon-orange);
    box-shadow: 0 0 30px rgba(255, 102, 0, 0.5);
    transform: translateY(-2px);
}

/* Login Form Styling */
.uho-login {
    max-width: 400px;
    margin: 2rem auto;
    padding: 2rem;
    border: 3px solid var(--uho-neon-orange);
    border-radius: 12px;
    background: linear-gradient(145deg, #0a0a0a, #000000);
    box-shadow: 0 0 30px rgba(255, 102, 0, 0.4);
}

.uho-login h2 {
    text-align: center;
    margin-bottom: 2rem;
    animation: neon-flicker 3s infinite alternate;
}

/* Form Elements */
.uho-portal input[type="text"],
.uho-portal input[type="email"],
.uho-portal input[type="password"],
.uho-portal input[type="date"],
.uho-portal input[type="number"],
.uho-portal textarea,
.uho-portal select {
    background: var(--uho-black);
    border: 2px solid var(--uho-neon-cyan);
    color: var(--uho-white);
    padding: 0.75rem;
    border-radius: 6px;
    font-family: var(--uho-font-body);
    transition: var(--uho-transition);
    width: 100%;
    box-sizing: border-box;
}

.uho-portal input:focus,
.uho-portal textarea:focus,
.uho-portal select:focus {
    outline: none;
    border-color: var(--uho-neon-orange);
    box-shadow: 0 0 15px rgba(255, 102, 0, 0.6);
}

.uho-portal label {
    color: var(--uho-neon-green);
    font-weight: bold;
    margin-bottom: 0.5rem;
    display: block;
}

/* Buttons */
.uho-portal .button,
.uho-portal button[type="submit"],
.uho-portal input[type="submit"] {
    background: linear-gradient(45deg, var(--uho-neon-orange), var(--uho-neon-red));
    color: var(--uho-white);
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 6px;
    font-family: var(--uho-font-body);
    font-weight: bold;
    cursor: pointer;
    transition: var(--uho-transition);
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    overflow: hidden;
}

.uho-portal .button:hover,
.uho-portal button[type="submit"]:hover,
.uho-portal input[type="submit"]:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 102, 0, 0.6);
    animation: neon-pulse 1s infinite;
}

.uho-portal .button:active,
.uho-portal button[type="submit"]:active,
.uho-portal input[type="submit"]:active {
    transform: translateY(0);
}

/* Button Variations */
.uho-portal .button-primary {
    background: linear-gradient(45deg, var(--uho-neon-cyan), var(--uho-neon-blue));
}

.uho-portal .button-primary:hover {
    box-shadow: 0 5px 15px rgba(0, 255, 255, 0.6);
}

/* Tables */
.uho-table-wrap {
    overflow-x: auto;
    margin: 1rem 0;
}

.uho-portal table {
    width: 100%;
    border-collapse: collapse;
    background: rgba(0, 0, 0, 0.8);
    border-radius: 8px;
    overflow: hidden;
}

.uho-portal th {
    background: linear-gradient(45deg, var(--uho-neon-blue), var(--uho-neon-cyan));
    color: var(--uho-black);
    padding: 1rem;
    text-align: left;
    font-family: var(--uho-font-display);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.uho-portal td {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid rgba(0, 255, 255, 0.2);
    transition: var(--uho-transition);
}

.uho-portal tr:hover td {
    background: rgba(0, 255, 255, 0.1);
    color: var(--uho-neon-cyan);
}

/* Badges and Status Indicators */
.uho-badge {
    background: var(--uho-neon-green);
    color: var(--uho-black);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 0 10px rgba(0, 255, 0, 0.5);
}

/* Grid Layout */
.uho-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

/* Upload Forms */
.uho-upload {
    border: 2px dashed var(--uho-neon-orange);
    border-radius: 8px;
    padding: 2rem;
    text-align: center;
    background: rgba(255, 102, 0, 0.05);
    transition: var(--uho-transition);
}

.uho-upload:hover {
    border-color: var(--uho-neon-cyan);
    background: rgba(0, 255, 255, 0.05);
}

.uho-upload input[type="file"] {
    border: none;
    background: transparent;
    color: var(--uho-white);
}

/* Success and Error Messages */
.uho-success {
    background: rgba(0, 255, 0, 0.1);
    border: 2px solid var(--uho-neon-green);
    color: var(--uho-neon-green);
    padding: 1rem;
    border-radius: 6px;
    margin: 1rem 0;
    box-shadow: 0 0 15px rgba(0, 255, 0, 0.3);
}

.uho-error {
    background: rgba(255, 0, 0, 0.1);
    border: 2px solid var(--uho-neon-red);
    color: var(--uho-neon-red);
    padding: 1rem;
    border-radius: 6px;
    margin: 1rem 0;
    box-shadow: 0 0 15px rgba(255, 0, 0, 0.3);
}

/* Navigation and Links */
.uho-portal a {
    color: var(--uho-neon-cyan);
    text-decoration: none;
    transition: var(--uho-transition);
    position: relative;
}

.uho-portal a:hover {
    color: var(--uho-neon-orange);
    text-shadow: 0 0 10px var(--uho-neon-orange);
}

.uho-portal a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--uho-neon-orange);
    transition: width 0.3s ease;
}

.uho-portal a:hover::after {
    width: 100%;
}

/* Responsive Design */
@media (max-width: 768px) {
    .uho-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .uho-portal h1 {
        font-size: 2rem;
    }
    
    .uho-portal h2 {
        font-size: 1.5rem;
    }
    
    .uho-card {
        padding: 1rem;
        margin: 0.5rem 0;
    }
    
    .uho-login {
        margin: 1rem;
        padding: 1.5rem;
    }
}

/* Loading States */
.uho-loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(0, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: var(--uho-neon-cyan);
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Glitch Text Effect */
.glitch-text {
    position: relative;
    animation: glitch 2s infinite;
}

.glitch-text::before,
.glitch-text::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.glitch-text::before {
    animation: glitch 0.3s infinite;
    color: var(--uho-neon-red);
    z-index: -1;
}

.glitch-text::after {
    animation: glitch 0.3s infinite reverse;
    color: var(--uho-neon-cyan);
    z-index: -2;
}

/* Neon Border Animation */
.neon-border {
    position: relative;
}

.neon-border::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, var(--uho-neon-orange), var(--uho-neon-cyan), var(--uho-neon-red), var(--uho-neon-blue));
    border-radius: inherit;
    z-index: -1;
    animation: neon-border-rotate 3s linear infinite;
}

@keyframes neon-border-rotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Print Styles */
/* Enhanced Crew Login Page Styling */
.uho-auth-container {
    min-height: 100vh;
    background: linear-gradient(135deg, #000000 0%, #0a0a0a 50%, #000000 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    position: relative;
    overflow: hidden;
}

.uho-auth-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 80%, rgba(0, 255, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255, 102, 0, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(0, 255, 0, 0.05) 0%, transparent 50%);
    animation: background-pulse 8s ease-in-out infinite alternate;
}

@keyframes background-pulse {
    0% { opacity: 0.3; }
    100% { opacity: 0.7; }
}

.uho-auth-card {
    background: linear-gradient(145deg, rgba(0, 0, 0, 0.9), rgba(10, 10, 10, 0.9));
    border: 2px solid var(--uho-neon-cyan);
    border-radius: 20px;
    padding: 3rem;
    max-width: 500px;
    width: 100%;
    position: relative;
    backdrop-filter: blur(10px);
    box-shadow: 
        0 0 50px rgba(0, 255, 255, 0.3),
        inset 0 0 50px rgba(0, 255, 255, 0.1);
    animation: card-glow 4s ease-in-out infinite alternate;
}

@keyframes card-glow {
    0% {
        box-shadow: 
            0 0 50px rgba(0, 255, 255, 0.3),
            inset 0 0 50px rgba(0, 255, 255, 0.1);
    }
    100% {
        box-shadow: 
            0 0 80px rgba(255, 102, 0, 0.4),
            inset 0 0 80px rgba(255, 102, 0, 0.1);
    }
}

.uho-auth-card h2 {
    font-family: var(--uho-font-display);
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 2rem;
    background: linear-gradient(45deg, var(--uho-neon-cyan), var(--uho-neon-orange), var(--uho-neon-green));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: text-shimmer 3s ease-in-out infinite alternate;
    text-shadow: 0 0 20px rgba(0, 255, 255, 0.5);
}

@keyframes text-shimmer {
    0% { filter: hue-rotate(0deg); }
    100% { filter: hue-rotate(60deg); }
}

.uho-auth-section h3 {
    color: var(--uho-neon-green);
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    text-align: center;
    text-shadow: 0 0 10px var(--uho-neon-green);
}

/* Enhanced Form Elements for Login */
.uho-auth-container input[type="text"],
.uho-auth-container input[type="email"],
.uho-auth-container input[type="password"] {
    background: rgba(0, 0, 0, 0.8);
    border: 2px solid var(--uho-neon-cyan);
    color: var(--uho-white);
    padding: 1rem;
    border-radius: 10px;
    font-family: var(--uho-font-body);
    font-size: 1rem;
    transition: all 0.3s ease;
    width: 100%;
    box-sizing: border-box;
    margin-bottom: 1rem;
}

.uho-auth-container input:focus {
    outline: none;
    border-color: var(--uho-neon-orange);
    box-shadow: 
        0 0 20px rgba(255, 102, 0, 0.6),
        inset 0 0 20px rgba(255, 102, 0, 0.1);
    transform: scale(1.02);
}

.uho-auth-container input::placeholder {
    color: rgba(255, 255, 255, 0.6);
    font-style: italic;
}

/* Enhanced Buttons */
.uho-auth-container .button,
.uho-auth-container input[type="submit"] {
    background: linear-gradient(45deg, var(--uho-neon-orange), var(--uho-neon-red));
    border: none;
    color: var(--uho-black);
    padding: 1rem 2rem;
    border-radius: 10px;
    font-family: var(--uho-font-display);
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    overflow: hidden;
}

.uho-auth-container .button:hover,
.uho-auth-container input[type="submit"]:hover {
    background: linear-gradient(45deg, var(--uho-neon-red), var(--uho-neon-orange));
    box-shadow: 0 0 30px rgba(255, 102, 0, 0.8);
    transform: translateY(-2px);
}

.uho-auth-container .button:active,
.uho-auth-container input[type="submit"]:active {
    transform: translateY(0);
}

/* Google SSO Button */
.uho-google-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    background: linear-gradient(45deg, #4285F4, #34A853);
    border: none;
    color: white;
    padding: 1rem 2rem;
    border-radius: 10px;
    font-family: var(--uho-font-body);
    font-size: 1rem;
    font-weight: bold;
    text-decoration: none;
    transition: all 0.3s ease;
    width: 100%;
    margin-bottom: 1.5rem;
    box-shadow: 0 4px 15px rgba(66, 133, 244, 0.3);
}

.uho-google-btn:hover {
    background: linear-gradient(45deg, #34A853, #4285F4);
    box-shadow: 0 6px 25px rgba(66, 133, 244, 0.5);
    transform: translateY(-2px);
    color: white;
    text-decoration: none;
}

/* Auth Divider */
.uho-auth-divider {
    text-align: center;
    margin: 2rem 0;
    position: relative;
}

.uho-auth-divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--uho-neon-cyan), transparent);
}

.uho-auth-divider span {
    background: var(--uho-black);
    padding: 0 1rem;
    color: var(--uho-neon-cyan);
    font-family: var(--uho-font-display);
    position: relative;
    z-index: 1;
}

/* Auth Tabs */
.uho-auth-tabs {
    display: flex;
    margin-bottom: 2rem;
    border-radius: 10px;
    overflow: hidden;
    background: rgba(0, 0, 0, 0.5);
}

.uho-tab-btn {
    flex: 1;
    background: transparent;
    border: none;
    color: var(--uho-white);
    padding: 1rem;
    font-family: var(--uho-font-body);
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.uho-tab-btn.active {
    background: linear-gradient(45deg, var(--uho-neon-orange), var(--uho-neon-red));
    color: var(--uho-black);
    font-weight: bold;
}

.uho-tab-btn:hover:not(.active) {
    background: rgba(0, 255, 255, 0.1);
    color: var(--uho-neon-cyan);
}

.uho-tab-content {
    display: none;
}

.uho-tab-content.active {
    display: block;
    animation: fadeIn 0.5s ease-in-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Forgot Password Link */
.uho-forgot-password-link {
    color: var(--uho-neon-cyan);
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.uho-forgot-password-link:hover {
    color: var(--uho-neon-orange);
    text-shadow: 0 0 10px var(--uho-neon-orange);
}

/* Modal Styling */
.uho-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    backdrop-filter: blur(5px);
}

.uho-modal-content {
    background: linear-gradient(145deg, rgba(0, 0, 0, 0.95), rgba(10, 10, 10, 0.95));
    border: 2px solid var(--uho-neon-orange);
    border-radius: 15px;
    padding: 2rem;
    max-width: 400px;
    width: 90%;
    position: relative;
    box-shadow: 0 0 50px rgba(255, 102, 0, 0.5);
}

.uho-modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    color: var(--uho-neon-red);
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.uho-modal-close:hover {
    color: var(--uho-white);
    text-shadow: 0 0 10px var(--uho-neon-red);
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .uho-auth-container {
        padding: 1rem;
    }
    
    .uho-auth-card {
        padding: 2rem;
        border-radius: 15px;
    }
    
    .uho-auth-card h2 {
        font-size: 2rem;
    }
    
    .uho-auth-container input[type="text"],
    .uho-auth-container input[type="email"],
    .uho-auth-container input[type="password"] {
        padding: 0.875rem;
        font-size: 0.95rem;
    }
    
    .uho-auth-container .button,
    .uho-auth-container input[type="submit"],
    .uho-google-btn {
        padding: 0.875rem 1.5rem;
        font-size: 1rem;
    }
}

@media print {
    .uho-portal {
        background: white !important;
        color: black !important;
    }
    
    .uho-card {
        border: 1px solid #ccc !important;
        box-shadow: none !important;
    }
}
