* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    width: 100%;
    height: 100%;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica Neue', sans-serif;
    background: linear-gradient(135deg, #0f172a 0%, #172555 50%, #0f0f23 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.container {
/*    max-width: 42rem;*/
    max-width: 30rem;
    width: 100%;
/*    padding: 1rem;*/
}

.main-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3rem;
}

/* ===== ANIMATIONS ===== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

@keyframes bounce {
    0%, 80%, 100% {
        opacity: 0.5;
        transform: translateY(0);
    }
    40% {
        opacity: 1;
        transform: translateY(-10px);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* ===== LOGO ===== */
.logo {
    animation: fadeInUp 0.8s ease-out forwards;
    filter: drop-shadow(0 20px 25px rgba(0, 0, 0, 0.5));
}

.logo img {
    width: 8rem;
    height: auto;
    display: block;
}

/* ===== CONTENT SECTIONS ===== */
.content {
    display: flex;
    flex-direction: column;
    align-items: center;
/*    gap: 1.5rem;*/
    text-align: center;
    animation: fadeInUp 0.8s ease-out 0.2s forwards;
    opacity: 0;
}

h1 {
    font-size: clamp(2.5rem, 8vw, 4rem);
    font-weight: 700;
    color: white;
    letter-spacing: -0.02em;
    line-height: 1.2;
}

h2 {
    font-size: clamp(1.75rem, 6vw, 2.5rem);
    font-weight: 700;
    color: white;
    letter-spacing: -0.02em;
    line-height: 1.3;
    margin-bottom: 0.5rem;
}

.subtitle {
    font-size: 1.25rem;
    color: #cbd5e1;
    max-width: 28rem;
    line-height: 1.6;
    margin: 0;
}

.status-message {
    margin-top: 1rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(71, 85, 105, 0.3);
}

.status-label {
    font-size: 0.75rem;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 0.5rem;
}

.status-text {
    font-size: 1.125rem;
    color: #e2e8f0;
    margin-top: 0.5rem;
    font-weight: 500;
}

/* ===== COUNTDOWN TIMER ===== */
.countdown-timer {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(71, 85, 105, 0.3);
    width: 100%;
    animation: fadeInUp 0.8s ease-out 0.4s forwards;
    opacity: 0;
}

.countdown-label {
    font-size: 0.75rem;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 1rem;
    text-align: center;
}

.countdown-display {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.countdown-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
}

.countdown-value {
    font-size: clamp(1.5rem, 5vw, 2.5rem);
    font-weight: 700;
    color: #60a5fa;
    font-family: 'Courier New', monospace;
    text-shadow: 0 0 10px rgba(96, 165, 250, 0.3);
    min-width: 3rem;
    text-align: center;
}

.countdown-unit {
    font-size: 0.625rem;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 600;
}

.countdown-separator {
    color: #60a5fa;
    font-size: clamp(1.5rem, 5vw, 2.5rem);
    font-weight: 700;
    margin: 0 0.25rem;
    opacity: 0.5;
    line-height: 1;
}

/* ===== ADMIN LAYOUT ===== */
.admin-wrapper {
    display: flex;
    height: 100vh;
    overflow: hidden;
    background: #0f172a;
}

/* Sidebar */
.admin-sidebar {
    width: 280px;
    background: linear-gradient(180deg, #1e293b 0%, #0f172a 100%);
    border-right: 1px solid rgba(71, 85, 105, 0.2);
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    transition: transform 0.3s ease;
}

.sidebar-logo {
    padding: 1.5rem;
    border-bottom: 1px solid rgba(71, 85, 105, 0.2);
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.sidebar-logo img {
    width: 2.5rem;
    height: auto;
}

.sidebar-logo-text {
    font-size: 1.1rem;
    font-weight: 700;
    color: white;
}

.sidebar-nav {
    flex: 1;
    padding: 1rem 0;
    list-style: none;
}

.sidebar-nav-item {
    padding: 0;
    margin: 0;
}

.sidebar-nav-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.5rem;
    color: #cbd5e1;
    text-decoration: none;
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
}

.sidebar-nav-link:hover {
    background: rgba(96, 165, 250, 0.1);
    color: #60a5fa;
    border-left-color: #60a5fa;
}

.sidebar-nav-link.active {
    background: rgba(96, 165, 250, 0.15);
    color: #60a5fa;
    border-left-color: #60a5fa;
}

.sidebar-nav-icon {
    font-size: 1.25rem;
    width: 1.5rem;
    text-align: center;
}

.sidebar-footer {
    padding: 1rem 1.5rem;
    border-top: 1px solid rgba(71, 85, 105, 0.2);
    font-size: 0.875rem;
    color: #64748b;
    text-align: center;
}

/* Main Content Area */
.admin-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

/* Top Bar */
.admin-topbar {
    background: linear-gradient(90deg, #1e293b 0%, #172555 100%);
    border-bottom: 1px solid rgba(71, 85, 105, 0.2);
    padding: 1rem 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.topbar-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
}

.topbar-user-section {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 1rem;
    background: rgba(96, 165, 250, 0.1);
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.user-info:hover {
    background: rgba(96, 165, 250, 0.2);
}

.user-avatar {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    background: linear-gradient(135deg, #60a5fa 0%, #3b82f6 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: 1rem;
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.user-avatar img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}

.user-details {
    display: flex;
    flex-direction: column;
    gap: 0.125rem;
}

.user-name {
    font-size: 0.875rem;
    font-weight: 600;
    color: white;
}

.user-role {
    font-size: 0.75rem;
    color: #94a3b8;
}

.logout-btn {
    padding: 0.5rem 1rem;
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #ef4444;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.logout-btn:hover {
    background: rgba(239, 68, 68, 0.2);
    border-color: rgba(239, 68, 68, 0.5);
}

/* Content Area */
.admin-content {
    flex: 1;
    overflow-y: auto;
    padding: 2rem;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.card {
    background: linear-gradient(135deg, #1e293b 0%, #172555 50%);
    border: 1px solid rgba(71, 85, 105, 0.2);
    border-radius: 12px;
    padding: 1.5rem;
    transition: all 0.3s ease;
}

.card:hover {
    border-color: rgba(96, 165, 250, 0.3);
    box-shadow: 0 8px 16px rgba(96, 165, 250, 0.1);
    transform: translateY(-2px);
}

.card-title {
    font-size: 0.875rem;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.5rem;
}

.card-value {
    font-size: 2rem;
    font-weight: 700;
    color: #60a5fa;
    margin-bottom: 0.5rem;
}

.card-meta {
    font-size: 0.875rem;
    color: #64748b;
}

/* Footer */
.admin-footer {
    background: linear-gradient(90deg, #1e293b 0%, #172555 100%);
    border-top: 1px solid rgba(71, 85, 105, 0.2);
    padding: 1.5rem 2rem;
    text-align: center;
    color: #64748b;
    font-size: 0.875rem;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .admin-sidebar {
        position: absolute;
        left: 0;
        top: 0;
        height: 100vh;
        z-index: 1000;
        transform: translateX(-100%);
        box-shadow: 4px 0 12px rgba(0, 0, 0, 0.5);
    }

    .admin-sidebar.open {
        transform: translateX(0);
    }

    .admin-wrapper.sidebar-open .admin-main {
        opacity: 0.5;
    }

    .topbar-title {
        font-size: 1.25rem;
    }

    .user-details {
        display: none;
    }

    .admin-content {
        padding: 1rem;
    }

    .dashboard-grid {
        grid-template-columns: 1fr;
    }
}

/* ===== CONTACT SECTION ===== */
.contact-section {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(71, 85, 105, 0.3);
    width: 100%;
}

.contact-container {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    justify-content: center;
    align-items: center;
}

@media (min-width: 768px) {
    .contact-container {
        flex-direction: row;
        align-items: flex-start;
    }
}

.contact-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

@media (min-width: 768px) {
    .contact-item {
        align-items: flex-start;
    }
}

.contact-label {
    font-size: 0.75rem;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.contact-email {
    color: #e2e8f0;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.contact-email:hover {
    color: white;
}

.divider {
    display: none;
    width: 1px;
    height: 3rem;
    background-color: rgba(71, 85, 105, 0.3);
}

@media (min-width: 768px) {
    .divider {
        display: block;
    }
}

/* ===== STATUS INDICATOR ===== */
.status-indicator {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.status-dot {
    width: 0.5rem;
    height: 0.5rem;
    background-color: #eab308;
    border-radius: 50%;
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

.status-indicator-text {
    color: #e2e8f0;
    font-weight: 500;
}

/* ===== LOADING ANIMATION ===== */
.loading-container {
    margin-top: 3rem;
}

.dots {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
}

.dot {
    width: 0.5rem;
    height: 0.5rem;
    background-color: #60a5fa;
    border-radius: 50%;
    animation: bounce 1.4s infinite;
}

.dot:nth-child(2) {
    animation-delay: 0.2s;
}

.dot:nth-child(3) {
    animation-delay: 0.4s;
}

/* ===== FORM STYLES ===== */
.form-wrapper {
    width: 100%;
    animation: fadeInUp 0.8s ease-out 0.3s forwards;
    opacity: 0;
}

.form-group {
    margin-bottom: 1.5rem;
    animation: slideInLeft 0.6s ease-out forwards;
    opacity: 0;
}

.form-group:nth-child(1) { animation-delay: 0.4s; }
.form-group:nth-child(2) { animation-delay: 0.5s; }
.form-group:nth-child(3) { animation-delay: 0.6s; }

.form-label {
    display: block;
    font-size: 0.875rem;
    color: #cbd5e1;
    font-weight: 500;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.form-input {
    width: 100%;
    padding: 0.875rem 1rem;
    font-size: 1rem;
    border: 1px solid rgba(148, 163, 184, 0.3);
    border-radius: 0.5rem;
    background-color: rgba(15, 23, 42, 0.6);
    color: white;
    transition: all 0.3s ease;
    font-family: inherit;
}

.form-input::placeholder {
    color: #64748b;
}

.form-input:focus {
    outline: none;
    border-color: #60a5fa;
    background-color: rgba(15, 23, 42, 0.8);
    box-shadow: 0 0 0 3px rgba(96, 165, 250, 0.1);
}

.form-input:hover {
    border-color: rgba(148, 163, 184, 0.5);
}

.checkbox-group {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.checkbox-input {
    width: 1.25rem;
    height: 1.25rem;
    cursor: pointer;
    accent-color: #60a5fa;
}

.checkbox-label {
    font-size: 0.875rem;
    color: #cbd5e1;
    cursor: pointer;
    transition: color 0.3s ease;
}

.checkbox-label:hover {
    color: white;
}

.form-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.875rem;
    margin-bottom: 1.5rem;
}

.forgot-password {
    color: #60a5fa;
    text-decoration: none;
    transition: color 0.3s ease;
}

.forgot-password:hover {
    color: #93c5fd;
}

/* ===== BUTTON STYLES ===== */
.btn {
    width: 100%;
    padding: 0.875rem 1rem;
    font-size: 1rem;
    font-weight: 600;
    border: none;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    animation: slideInLeft 0.6s ease-out 0.7s forwards;
    opacity: 0;
}

.btn-primary {
    background: linear-gradient(135deg, #0f172a 0%, #172555 100%);
    color: white;
    border: 2px solid #60a5fa;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #172555 0%, #1e3a8a 100%);
    box-shadow: 0 0 20px rgba(96, 165, 250, 0.3);
    transform: translateY(-2px);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-secondary {
    background-color: transparent;
    color: #cbd5e1;
    border: 1px solid rgba(148, 163, 184, 0.3);
}

.btn-secondary:hover {
    color: white;
    border-color: rgba(148, 163, 184, 0.6);
    background-color: rgba(148, 163, 184, 0.1);
}

/* ===== SIGN UP LINK ===== */
.signup-link {
    text-align: center;
    font-size: 0.875rem;
    color: #cbd5e1;
    animation: fadeInUp 0.8s ease-out 0.8s forwards;
    opacity: 0;
}

.signup-link a {
    color: #60a5fa;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.signup-link a:hover {
    color: #93c5fd;
    text-decoration: underline;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .container {
        padding: 1rem;
    }

    .main-content {
        gap: 2rem;
    }

    h1 {
        font-size: 2.25rem;
    }

    h2 {
        font-size: 1.75rem;
    }

    .subtitle {
        font-size: 1rem;
    }

    .logo img {
        width: 7rem;
    }

    .form-input {
        font-size: 16px;
        padding: 1rem;
    }

    .form-group {
        margin-bottom: 1.25rem;
    }

    .form-footer {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
    }

    .checkbox-group {
        margin-bottom: 1rem;
    }

    .forgot-password {
        align-self: flex-start;
    }

    .btn {
        padding: 1rem;
        font-size: 1rem;
        min-height: 48px;
    }

    .checkbox-input {
        width: 1.5rem;
        height: 1.5rem;
    }
}

@media (max-width: 480px) {
    body {
        padding: 0.5rem;
    }

    .container {
        padding: 0;
    }

    .main-content {
        gap: 1.5rem;
    }

    .logo img {
        width: 6rem;
    }

    h2 {
        font-size: 1.5rem;
    }

    .subtitle {
        font-size: 0.95rem;
        line-height: 1.5;
    }

    .content {
        gap: 1rem;
    }

    .form-wrapper {
        width: 100%;
    }

    .form-group {
        margin-bottom: 1rem;
    }

    .form-label {
        font-size: 0.8rem;
        margin-bottom: 0.5rem;
    }

    .form-input {
        font-size: 16px;
        padding: 0.875rem;
    }

    .btn {
        padding: 0.875rem;
        min-height: 48px;
        font-size: 0.95rem;
    }

    .form-footer {
        flex-direction: column;
        gap: 1rem;
    }

    .checkbox-group {
        gap: 0.5rem;
    }

    .checkbox-label {
        font-size: 0.8rem;
    }

    .forgot-password {
        font-size: 0.8rem;
    }

    .signup-link {
        font-size: 0.8rem;
    }
}
