/* Admin Page Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--background);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    color: var(--bold);
    transition: all 0.3s ease;
}

.admin-container {
    width: 100%;
    max-width: 500px;
    padding: 40px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    position: relative;
    z-index: 2;
}

.admin-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 48px;
    width: 100%;
}

/* Page Title */
.password-title-block {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.password-title {
    font-size: clamp(2.5rem, 9vw, 5.5rem);
    font-weight: 800;
    line-height: 1;
    letter-spacing: -0.02em;
    color: var(--bold);
    margin: 0;
}

.password-subtitle {
    font-size: clamp(1rem, 3vw, 1.35rem);
    font-weight: 500;
    letter-spacing: 0.02em;
    color: var(--accent);
    margin: 0;
}

/* Logo Container */
.logo-container {
    width: 200px;
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.logo-animation {
    width: 100%;
    height: 100%;
    filter: invert(var(--logo-invert));
}

/* Input Section */
.input-section {
    width: 100%;
    max-width: 300px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.input-container {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

/* Access Button */
.access-button {
    width: 60px;
    height: 60px;
    border: 2px solid var(--black-color);
    background: transparent;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    color: var(--black-color);
    font-size: 20px;
    position: relative;
    overflow: hidden;
}

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

.access-button:hover::before {
    left: 100%;
}

.access-button:hover {
    background: rgba(0, 0, 0, 0.05);
    transform: scale(1.05);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

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

/* Input Wrapper */
.input-wrapper {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 15px;
    animation: slideInUp 0.3s ease-out;
}

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

/* Theme Toggle Button */
.theme-toggle {
    position: fixed;
    top: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    border: 2px solid var(--black-color);
    background: transparent;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    color: var(--black-color);
    font-size: 20px;
    z-index: 1000;
    backdrop-filter: blur(10px);
}

.theme-toggle:hover {
    background: rgba(var(--black-color-rgb), 0.1);
    transform: scale(1.1);
    box-shadow: 0 4px 15px rgba(var(--black-color-rgb), 0.2);
}

.theme-toggle:active {
    transform: scale(0.95);
}

/* Component Library Input Styling Overrides */
.input-wrapper .input-container {
    margin-bottom: 8px;
}

.input-wrapper .input-container .input-icon {
    color: var(--black-color);
    transition: all 0.3s ease;
}

.input-wrapper .input-container:focus-within .input-icon {
    color: var(--accent);
    transform: scale(1.1);
}

/* Component Library Button Styling Overrides */
.input-wrapper .button {
    width: 100%;
}

/* Error Message */
.error-message {
    width: 100%;
    padding: 12px 16px;
    background: rgba(var(--error-color-rgb), 0.1);
    border: 1px solid rgba(var(--error-color-rgb), 0.3);
    border-radius: 12px;
    color: var(--error-color);
    font-size: 14px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
    animation: slideInDown 0.3s ease-out;
}

/* Success Message */
.success-message {
    width: 100%;
    padding: 12px 16px;
    background: rgba(var(--success-color-rgb), 0.1);
    border: 1px solid rgba(var(--success-color-rgb), 0.3);
    border-radius: 12px;
    color: var(--success-color);
    font-size: 14px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
    animation: slideInDown 0.3s ease-out;
}

@keyframes slideInDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.error-message i,
.success-message i {
    font-size: 16px;
    flex-shrink: 0;
}

/* Responsive Design */
@media (max-width: 480px) {
    .admin-container {
        padding: 20px 16px;
    }
    
    .admin-content {
        gap: 40px;
    }
    
    .logo-container {
        width: 150px;
        height: 150px;
    }
    
    .access-button {
        width: 50px;
        height: 50px;
        font-size: 18px;
    }
    
    .theme-toggle {
        width: 45px;
        height: 45px;
        font-size: 18px;
        top: 15px;
        right: 15px;
    }
    
}

/* Theme-specific adjustments handled by CSS variables */

/* Loading states */
.submit-button.loading {
    pointer-events: none;
    opacity: 0.7;
}

.submit-button.loading i {
    animation: spin 1s linear infinite;
}

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

/* Focus states for accessibility */
.access-button:focus,
.theme-toggle:focus {
    outline: 2px solid var(--color);
    outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .access-button,
    .theme-toggle {
        border-width: 3px;
    }
    
    .error-message,
    .success-message {
        border-width: 2px;
    }
}
