:root {
    --primary-color: #6c63ff;
    --primary-light: #a29bfe;
    --secondary-color: #ff7675;
    --background-light: #f9f9ff;
    --text-dark: #2d3436;
    --text-light: #636e72;
    --white: #ffffff;
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    --shadow-hover: 0 15px 35px rgba(0, 0, 0, 0.15);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
    -webkit-tap-highlight-color: transparent;
}

body {
    background-color: var(--background-light);
    color: var(--text-dark);
    min-height: 100vh;
    overflow-x: hidden;
    touch-action: manipulation;
}

#currentYear {
    display: inline-block;
}

.floating-shapes {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

.shape {
    position: absolute;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-light), var(--primary-color));
    opacity: 0.1;
    filter: blur(30px);
}

.shape-1 {
    width: 300px;
    height: 300px;
    top: -50px;
    left: -50px;
    animation: float 15s infinite ease-in-out;
}

.shape-2 {
    width: 200px;
    height: 200px;
    bottom: 100px;
    right: 100px;
    background: linear-gradient(135deg, var(--secondary-color), #fd79a8);
    animation: float 12s infinite ease-in-out reverse;
}

.shape-3 {
    width: 150px;
    height: 150px;
    top: 40%;
    right: -50px;
    animation: float 10s infinite ease-in-out;
}

/* Animations */
@keyframes float {
    0%, 100% {
        transform: translate(0, 0);
    }
    50% {
        transform: translate(20px, 20px);
    }
}

.animate-fade-in {
    animation: fadeIn 1s ease-in-out;
}

.animate-slide-up {
    animation: slideUp 0.8s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from { 
        opacity: 0;
        transform: translateY(30px);
    }
    to { 
        opacity: 1;
        transform: translateY(0);
    }
}

/* Loading Screen */
.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.95);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.5s ease-out;
}

.loading-screen.active {
    opacity: 1;
    pointer-events: all;
}

.loading-content {
    text-align: center;
    transform: translateY(20px);
    transition: transform 0.5s ease-out;
}

.loading-screen.active .loading-content {
    transform: translateY(0);
}

.loading-logo {
    width: 150px;
    height: auto;
    margin-bottom: 2rem;
    animation: pulse 2s infinite ease-in-out;
    opacity: 0;
    transition: opacity 0.5s ease-out 0.2s;
}

.loading-screen.active .loading-logo {
    opacity: 1;
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 5px solid var(--primary-light);
    border-top-color: var(--primary-color);
    border-radius: 50%;
    margin: 0 auto 1.5rem;
    animation: spin 1s linear infinite;
    opacity: 0;
    transition: opacity 0.5s ease-out 0.3s;
}

.loading-screen.active .loading-spinner {
    opacity: 1;
}

.loading-content p {
    color: var(--text-dark);
    font-size: 1.2rem;
    opacity: 0;
    transition: opacity 0.5s ease-out 0.4s;
}

.loading-screen.active .loading-content p {
    opacity: 1;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 0.9; }
    50% { transform: scale(1.05); opacity: 1; }
}

/* Login Page Slideshow images styles */
.login-wrapper {
    display: flex;
    width: 90%;
    max-width: 1000px; 
    height: 70vh; 
    min-height: 500px; 
    background-color: rgba(255, 255, 255, 0.9);
    border-radius: 20px;
    box-shadow: var(--shadow);
    overflow: hidden;
}

.slideshow-container {
    flex: 1;
    position: relative;
    display: none;
}

.slideshow-inner {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.slide.active {
    opacity: 1;
}

@media (min-width: 768px) {
    .slideshow-container {
        display: block;
    }
    
    .login-container {
        width: 350px; 
    }
}

@media (min-width: 992px) {
    .login-wrapper {
        height: 75vh; 
        min-height: 550px; 
    }
    
    .login-container {
        width: 400px; 
    }
}

@media (min-width: 1200px) {
    .login-wrapper {
        height: 80vh; 
        min-height: 600px; 
        max-width: 1200px; 
    }
    
    .slideshow-container {
        flex: 1.1;
    }
}

@media (min-width: 1600px) {
    .login-wrapper {
        max-width: 1400px; 
    }
}

/* Login Page Styles */
.login-page {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
}

.login-container {
    width: 100%;
    max-width: 450px;
    padding: 2rem;
    background-color: rgba(255, 255, 255, 0.9);
    border-radius: 20px;
    box-shadow: var(--shadow);
    backdrop-filter: blur(10px);
    text-align: center;
}

.login-logo {
    width: 150px;
    height: auto;
    margin-bottom: 1rem;
}

.login-header {
    margin-bottom: 2rem;
}

.login-header h1 {
    font-weight: 300;
    color: var(--text-light);
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.logo-text {
    font-size: clamp(1.5rem, 5vw, 2rem);
    font-weight: 600;
    color: var(--primary-color);
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1.3;
}

.input-group {
    position: relative;
    margin-bottom: 2rem;
    text-align: left;
}

.input-group input {
    width: 100%;
    padding: 10px 0;
    font-size: 1rem;
    border: none;
    border-bottom: 1px solid #ddd;
    outline: none;
    background: transparent;
    transition: all 0.3s;
}

.input-group label {
    position: absolute;
    top: 10px;
    left: 0;
    font-size: 1rem;
    color: var(--text-light);
    pointer-events: none;
    transition: all 0.3s;
}

.input-group input:focus ~ label,
.input-group input:valid ~ label {
    top: -15px;
    font-size: 0.8rem;
    color: var(--primary-color);
}

.input-group .underline {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
    transition: all 0.3s;
}

.input-group input:focus ~ .underline {
    width: 100%;
}

.login-button {
    position: relative;
    padding: 12px 30px;
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
    border: none;
    border-radius: 50px;
    color: white;
    font-size: 1rem;
    cursor: pointer;
    overflow: hidden;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 5px 15px rgba(108, 99, 255, 0.3);
}

.login-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(108, 99, 255, 0.4);
}

.login-button svg {
    margin-left: 10px;
    transition: all 0.3s;
}

.login-button:hover svg {
    transform: translateX(5px);
}

.login-button svg path,
.login-button svg polyline {
    stroke: white;
}

.error-message {
    color: #ff7675;
    margin-top: 1rem;
    height: 1.2rem;
    font-size: 0.9rem;
}

.login-footer {
    margin-top: 3rem;
    font-size: 0.8rem;
    color: var(--text-light);
}

/* Main Page Styles */
.main-page {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.page-wrapper {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    padding: 2rem;
    max-width: 2000px;
    margin: 0 auto;
    width: 100%;
}

.header-logo {
    width: 120px;
    height: auto;
    margin-bottom: 1rem;
}

.main-header {
    text-align: center;
    margin-bottom: 3rem;
    flex-shrink: 0;
}

.main-header h1 {
    font-size: clamp(1.5rem, 5vw, 3rem);
    font-weight: 600;
    line-height: 1.3;
    margin: 0 auto;
    max-width: 90%;
}

.main-header h1 span {
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 1rem;
}

.button-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2rem;
    width: 100%;
    justify-items: center;
}

@media (min-width: 768px) {
    .button-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
}

@media (min-width: 1200px) {
    .button-grid {
        grid-template-columns: repeat(5, minmax(200px, 1fr));
    }
}

@media (min-width: 1600px) {
    .button-grid {
        grid-template-columns: repeat(5, minmax(280px, 1fr));
        gap: 3rem;
    }
}

.image-button {
    position: relative;
    height: 200px;
    width: 100%;
    max-width: 350px;
    border-radius: 15px;
    overflow: hidden;
    cursor: pointer;
    box-shadow: var(--shadow);
    transition: all 0.3s;
}

@media (min-width: 1600px) {
    .image-button {
        height: 250px;
    }
}

.image-button:active {
    transform: scale(0.98);
}

.image-button:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: var(--shadow-hover);
}

.button-image {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transition: all 0.5s;
}

.image-button:hover .button-image {
    transform: scale(1.1);
}

.button-label {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 1.2rem;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7), transparent);
    color: white;
    font-size: 1.3rem;
    font-weight: 600;
    text-align: center;
    transition: all 0.3s;
}

@media (min-width: 1600px) {
    .button-label {
        font-size: 1.5rem;
        padding: 1.5rem;
    }
}

.image-button:hover .button-label {
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9), transparent);
}

.main-footer {
    text-align: center;
    padding: 1.5rem;
    font-size: 0.9rem;
    color: var(--text-light);
    flex-shrink: 0;
    margin-top: auto;
    width: 100%;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .main-header h1 {
        font-size: clamp(1.3rem, 6vw, 1.8rem);
    }
    
    .button-grid {
        grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    }
}

@media (max-width: 480px) {
    .main-header h1 {
        font-size: clamp(1.1rem, 7vw, 1.5rem);
        max-width: 95%;
    }
    
    .page-wrapper {
        padding: 1.5rem;
    }
    
    .button-grid {
        grid-template-columns: 1fr;
        max-width: 350px;
        margin: 0 auto;
    }
    
    .image-button {
        max-width: 100%;
        height: 180px;
    }
}