/* Global Typography */
body, html {
    font-family: 'Prompt', sans-serif;
    margin: 0;
    padding: 0;
}

/* CSS Variables for Modern Design */
:root {
    --glassy-mint-bg: rgba(16, 185, 129, 0.5);
    --violet-gradient: linear-gradient(90deg, #c3a2ff 0%, #a575ff 30%, #7830ff 100%);
    --glass-border: rgba(16, 185, 129, 0.6);
    --text-primary: #050505;
    --text-secondary: #666;
    --accent-mint: #10b981;
    --shadow-soft: 0 8px 32px rgba(0, 0, 0, 0.1);
    --shadow-hover: 0 12px 40px rgba(0, 0, 0, 0.15);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Background with gradient, vignette, and texture */
body {
    background: radial-gradient(circle at center, #ffd700 0%, #daa520 80%, #b8860b 100%);
    background-size: cover;
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 0 1.25rem;
}

body::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at center, transparent 40%, rgba(0, 0, 0, 0.1) 100%);
    pointer-events: none;
}

/* Layout */
.login-page-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    max-width: 800px;
    position: relative;
    z-index: 1;
}

/* Logo Emblem */
.logo-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: center;
}

.logo {
    width: clamp(200px, 50vw, 400px);
    height: clamp(200px, 50vw, 400px);
    border-radius: 50%;
    margin: 0 auto;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* Title Banner */
.title-banner {
    background: linear-gradient(90deg, #e00de0 0%, #a40de0 100%);
    padding: 1.5rem 3rem;
    border-radius: 20px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    margin-bottom: 2rem;
    width: 100%;
    text-align: center;
}

.title-text {
    font-size: clamp(1.5rem, 5vw, 2.5rem);
    font-weight: bold;
    color: #fefefe;
    margin: 0;
}

.title-text br + span {
    font-size: clamp(1rem, 3vw, 1.5rem);
    font-weight: normal;
}

/* Login Form Container - Glassmorphism */
.login-container {
    background: var(--violet-gradient);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    padding: 2rem;
    border-radius: 24px;
    width: 100%;
    max-width: 700px;
    box-shadow: var(--shadow-soft);
    text-align: center;
    transition: var(--transition);
    position: relative;
}

.login-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(25, 248, 174, 0.2) 0%, rgba(41, 235, 112, 0.1) 100%);
    border-radius: 24px;
    pointer-events: none;
}

.login-container:hover {
    box-shadow: var(--shadow-hover);
    transform: translateY(-2px);
}

form {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

/* Form Groups */
.form-group {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 1.5rem;
    align-items: center;
    margin-bottom: 2rem;
    width: 100%;
    max-width: 600px;
    transition: var(--transition);
}

.form-group:hover {
    transform: translateX(2px);
}

.form-group label {
    font-size: 1.125rem;
    font-weight: 500;
    color: var(--text-primary);
    text-align: left;
    letter-spacing: 0.025em;
}

/* Input Wrappers */
.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 16px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    transition: var(--transition);
}

.input-wrapper:hover {
    background: rgba(255, 255, 255, 0.9);
    border-color: rgba(16, 185, 129, 0.4);
    transform: scale(1.02);
}

.form-control {
    width: 100%;
    padding: 1rem 3rem 1rem 1.25rem;
    border: none;
    border-radius: 16px;
    background: transparent;
    font-size: 1rem;
    color: var(--text-primary);
    font-weight: 400;
    transition: var(--transition);
}

.form-control:focus {
    outline: none;
    background: rgba(255, 255, 255, 0.95);
}

.form-control:focus + .input-icon {
    color: var(--accent-mint);
}

.form-control::placeholder {
    color: var(--text-secondary);
    font-weight: 300;
}

.input-icon {
    position: absolute;
    right: 1rem;
    color: var(--text-secondary);
    cursor: pointer;
    font-size: 1.125rem;
    transition: var(--transition);
}

.input-icon:hover {
    color: var(--accent-mint);
    transform: scale(1.1);
}

/* Submit Button */
.login-btn {
    padding: 1rem 2.5rem;
    background: linear-gradient(135deg, #e00de0 0%, #a40de0 100%);
    color: white;
    border: none;
    border-radius: 16px;
    font-size: 1.125rem;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(165, 16, 185, 0.3);
    transition: var(--transition);
    margin-top: 1.5rem;
    position: relative;
    overflow: hidden;
}

.login-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.login-btn:hover::before {
    left: 100%;
}

.login-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(16, 185, 129, 0.4);
}

.login-btn:active {
    transform: translateY(0);
}

/* Modal styles (unchanged) */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
}

.modal-content {
    background-color: #fefefe;
    margin: 15% auto;
    padding: 20px;
    border: 1px solid #888;
    width: 80%;
    max-width: 500px;
    border-radius: 10px;
}

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.close:hover {
    color: black;
}

/* Responsive Design */
@media (max-width: 768px) {
    body {
        padding: 1rem;
    }

    .login-container {
        padding: 2rem 1.5rem;
        border-radius: 20px;
    }

    .login-container::before {
        border-radius: 20px;
    }

    .title-banner {
        padding: 1rem 2rem;
        margin-bottom: 1.5rem;
    }

    .title-text {
        font-size: 1.5rem;
    }

    .form-group {
        grid-template-columns: 1fr;
        gap: 1rem;
        margin-bottom: 1.5rem;
    }

    .form-group label {
        text-align: left;
        margin-bottom: 0.5rem;
        font-size: 1rem;
    }

    .input-wrapper {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .login-container {
        padding: 1.5rem 1rem;
    }

    .form-group {
        margin-bottom: 1rem;
    }

    .login-btn {
        padding: 0.75rem 2rem;
        font-size: 1rem;
    }
}