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

body {
    background: #0f172a;
    color: white;
    font-family: Arial, sans-serif;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 40px;
    background: #111827;
    border-bottom: 1px solid #1e293b;
}

.nav-left {
    display: flex;
    align-items: center;
    gap: 20px;
}

.nav-btn {
    background: #2563eb;
    color: white;
    text-decoration: none;
    padding: 10px 18px;
    border-radius: 10px;
}

.logout {
    background: #dc2626;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    padding: 30px;
}

.image-card {
    overflow: hidden;
    border-radius: 18px;
    cursor: pointer;
    transition: 0.3s;
    background: #1e293b;
}

.image-card:hover {
    transform: scale(1.03);
}

.gallery-image {
    width: 100%;
    height: 280px;
    object-fit: cover;
    display: block;
}

.viewer {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.95);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.hidden {
    display: none;
}

.viewer-image {
    max-width: 92%;
    max-height: 92vh;
    border-radius: 14px;
}

.close-btn {
    position: absolute;
    top: 20px;
    right: 30px;
    width: 50px;
    height: 50px;
    border: none;
    border-radius: 50%;
    font-size: 24px;
    cursor: pointer;
    background: rgba(255,255,255,0.2);
    color: white;
}

.viewer-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 60px;
    height: 60px;
    border: none;
    border-radius: 50%;
    background: rgba(255,255,255,0.2);
    color: white;
    font-size: 30px;
    cursor: pointer;
}

.left {
    left: 20px;
}

.right {
    right: 20px;
}

.folder-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
    padding: 40px;
}

.folder-card {
    position: relative;
    overflow: hidden;
    text-decoration: none;
    color: white;
    background:
        linear-gradient(
            145deg,
            #1e293b,
            #0f172a
        );

    border: 1px solid rgba(255,255,255,0.06);

    border-radius: 24px;

    padding: 50px 30px;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    transition: 0.35s ease;

    box-shadow:
        0 15px 40px rgba(0,0,0,0.35);
}

.folder-card:hover {

    transform:
        translateY(-10px)
        scale(1.03);

    box-shadow:
        0 25px 50px rgba(0,0,0,0.5);

    border-color:
        rgba(59,130,246,0.4);
}

.folder-icon {

    font-size: 72px;

    margin-bottom: 20px;

    transition: 0.35s ease;
}

.folder-card:hover .folder-icon {

    transform:
        scale(1.12)
        rotate(-4deg);
}

.folder-name {

    font-size: 24px;

    font-weight: bold;

    text-align: center;

    word-break: break-word;
}

.hero-section {

    padding:
        70px 30px 30px;

    text-align: center;
}

.hero-title {

    font-size: 48px;

    margin-bottom: 15px;

    background:
        linear-gradient(
            90deg,
            #60a5fa,
            #a78bfa
        );

    -webkit-background-clip: text;

    -webkit-text-fill-color: transparent;
}

.hero-subtitle {

    color: #94a3b8;

    font-size: 18px;
}





.login-page {

    overflow: hidden;

    min-height: 100vh;

    background:
        radial-gradient(circle at top left, #2563eb, transparent 30%),
        radial-gradient(circle at bottom right, #7c3aed, transparent 30%),
        #020617;

    display: flex;
    justify-content: center;
    align-items: center;
}

.login-background {

    position: fixed;
    inset: 0;

    background:
        linear-gradient(
            135deg,
            rgba(255,255,255,0.02),
            rgba(255,255,255,0)
        );

    backdrop-filter: blur(8px);
}

.login-wrapper {

    position: relative;

    z-index: 10;
}

.login-glow {

    position: absolute;

    width: 400px;
    height: 400px;

    background:
        radial-gradient(
            circle,
            rgba(59,130,246,0.35),
            transparent 70%
        );

    top: 50%;
    left: 50%;

    transform:
        translate(-50%, -50%);

    filter: blur(50px);

    animation:
        pulseGlow 4s infinite ease-in-out;
}

.login-box {

    position: relative;

    width: 380px;

    padding: 45px;

    border-radius: 28px;

    background:
        rgba(15,23,42,0.85);

    border:
        1px solid rgba(255,255,255,0.08);

    backdrop-filter:
        blur(18px);

    box-shadow:
        0 25px 60px rgba(0,0,0,0.5);

    z-index: 20;

    animation:
        slideUp 0.8s ease;
}

.login-header {

    text-align: center;

    margin-bottom: 35px;
}

.login-icon {

    font-size: 64px;

    margin-bottom: 15px;

    animation:
        floatIcon 3s infinite ease-in-out;
}

.login-header h1 {

    font-size: 32px;

    margin-bottom: 10px;
}

.login-header p {

    color: #94a3b8;

    font-size: 15px;
}

.input-group {

    margin-bottom: 20px;
}

.input-group input {

    width: 100%;

    padding: 16px 18px;

    border-radius: 14px;

    border:
        1px solid rgba(255,255,255,0.08);

    background:
        rgba(15,23,42,0.9);

    color: white;

    font-size: 15px;

    outline: none;

    transition: 0.3s ease;
}

.input-group input:focus {

    border-color:
        #3b82f6;

    box-shadow:
        0 0 15px rgba(59,130,246,0.35);
}

.login-btn {

    width: 100%;

    padding: 16px;

    border: none;

    border-radius: 14px;

    font-size: 16px;

    font-weight: bold;

    cursor: pointer;

    color: white;

    background:
        linear-gradient(
            135deg,
            #2563eb,
            #7c3aed
        );

    transition: 0.35s ease;
}

.login-btn:hover {

    transform:
        translateY(-3px);

    box-shadow:
        0 12px 30px rgba(59,130,246,0.35);
}

.error-message {

    margin-top: 20px;

    color: #f87171;

    text-align: center;
}

@keyframes slideUp {

    from {

        opacity: 0;

        transform:
            translateY(30px);
    }

    to {

        opacity: 1;

        transform:
            translateY(0);
    }
}

@keyframes pulseGlow {

    0%, 100% {

        transform:
            translate(-50%, -50%)
            scale(1);
    }

    50% {

        transform:
            translate(-50%, -50%)
            scale(1.1);
    }
}

@keyframes floatIcon {

    0%, 100% {

        transform:
            translateY(0);
    }

    50% {

        transform:
            translateY(-8px);
    }
}
