@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Outfit:wght@400;600;800&display=swap');

:root {
    --primary: #9b72cf;
    --primary-light: #c8a2c8;
    --primary-dark: #643f8e;
    --text-dark: #1a1a2e;
    --text-light: #6e6e8c;
    --white: #ffffff;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Inter', sans-serif;
}

body {
    background: radial-gradient(circle at top left, #E6E6FA, #ffffff, #D8BFD8);
    background-size: 200% 200%;
    animation: gradientShift 15s ease infinite;
    color: var(--text-dark);
    min-height: 100vh;
}

@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 50px;
    background: rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.5);
    position: sticky;
    top: 0;
    z-index: 50;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.03);
}

@media (max-width: 600px) {
    .header {
        padding: 15px 20px;
    }
}

.logo {
    font-family: 'Outfit', sans-serif;
    font-size: 28px;
    font-weight: 800;
    letter-spacing: 3px;
    color: var(--primary-dark);
    text-transform: uppercase;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: var(--white);
    border: none;
    padding: 14px 32px;
    border-radius: 30px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 10px 20px rgba(100, 63, 142, 0.3);
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.btn-primary:hover:not(:disabled) {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 14px 25px rgba(100, 63, 142, 0.4);
}

.btn-primary:active:not(:disabled) {
    transform: translateY(1px);
}

.btn-primary:disabled {
    background: rgba(155, 114, 207, 0.4);
    box-shadow: none;
    cursor: not-allowed;
    color: rgba(255, 255, 255, 0.7);
}

.btn-login {
    background: transparent;
    color: var(--primary-dark);
    border: 2px solid var(--primary);
    padding: 10px 26px;
    border-radius: 30px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-login:hover {
    background: var(--primary);
    color: var(--white);
    box-shadow: 0 5px 15px rgba(155, 114, 207, 0.3);
}

.hero {
    min-height: calc(100vh - 85px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 20px;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(155, 114, 207, 0.15) 0%, transparent 70%);
    top: -100px;
    left: -200px;
    border-radius: 50%;
    z-index: -1;
}

.hero h1 {
    font-family: 'Outfit', sans-serif;
    font-size: 64px;
    margin-bottom: 24px;
    color: var(--text-dark);
    line-height: 1.1;
    text-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

@media (max-width: 600px) {
    .hero h1 {
        font-size: 42px;
    }
}

.hero p {
    font-size: 20px;
    color: var(--text-light);
    margin-bottom: 40px;
    max-width: 550px;
    line-height: 1.6;
}

/* Modals */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(5px);
    z-index: 100;
}

.modal-content {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: 24px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
    width: 90%;
    max-width: 420px;
    margin: 10vh auto;
    padding: 40px;
    position: relative;
    animation: slideUp 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(40px) scale(0.95);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.modal-content h2 {
    font-family: 'Outfit', sans-serif;
    margin-bottom: 25px;
    font-size: 28px;
    color: var(--primary-dark);
    text-align: center;
}

.close {
    position: absolute;
    top: 20px;
    right: 25px;
    font-size: 28px;
    cursor: pointer;
    color: var(--text-light);
    transition: color 0.3s;
}

.close:hover {
    color: var(--primary-dark);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-light);
}

.form-group input,
.form-group textarea {
    width: 100%;
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(155, 114, 207, 0.3);
    border-radius: 12px;
    padding: 14px;
    font-size: 16px;
    transition: all 0.3s ease;
    color: var(--text-dark);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    background: rgba(255, 255, 255, 0.95);
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(155, 114, 207, 0.15);
}

.block {
    width: 100%;
    margin-top: 15px;
}

.error-msg {
    color: #ff4d4f;
    font-size: 14px;
    margin-top: 15px;
    text-align: center;
    font-weight: 500;
}

/* Cabinet Container */
.cabinet-container {
    max-width: 1150px;
    margin: 50px auto;
    display: grid;
    grid-template-columns: 1fr 1.3fr;
    gap: 35px;
    padding: 0 25px;
}

@media (max-width: 850px) {
    .cabinet-container {
        grid-template-columns: 1fr;
    }
}

.panel {
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border: 1px solid rgba(255, 255, 255, 0.8);
    border-radius: 24px;
    padding: 35px;
    box-shadow: 0 15px 35px rgba(155, 114, 207, 0.08);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.panel:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(155, 114, 207, 0.12);
}

.panel h2 {
    font-family: 'Outfit', sans-serif;
    font-size: 24px;
    color: var(--text-dark);
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.panel h2::before {
    content: '';
    display: inline-block;
    width: 6px;
    height: 24px;
    background: linear-gradient(to bottom, var(--primary), var(--primary-dark));
    border-radius: 4px;
}

.upload-area {
    border: 2px dashed rgba(155, 114, 207, 0.4);
    border-radius: 16px;
    padding: 40px 20px;
    text-align: center;
    background: rgba(255, 255, 255, 0.4);
    color: var(--text-dark);
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.upload-area:hover,
.upload-area.dragover {
    background: rgba(155, 114, 207, 0.1);
    border-color: var(--primary);
    transform: scale(1.02);
}

.upload-area p {
    color: var(--text-light);
    font-size: 15px;
}

.photos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
    gap: 15px;
    margin-top: 25px;
}

.photo-card {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    aspect-ratio: 1;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.06);
    background: #fff;
}

.photo-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.photo-card:hover img {
    transform: scale(1.08);
}

.photo-card.pending img {
    filter: grayscale(0.7) brightness(0.85);
}

.clock-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: rgba(30, 20, 50, 0.5);
    backdrop-filter: blur(3px);
    color: white;
    font-weight: 600;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    pointer-events: none;
    opacity: 1;
}