:root {
    --primary: #4F46E5; /* Indigo */
    --primary-hover: #4338CA;
    --secondary: #EC4899; /* Pink */
    --text-main: #1F2937;
    --text-muted: #4B5563;
    --bg-color: #F3F4F6;
    --glass-bg: rgba(255, 255, 255, 0.7);
    --glass-border: rgba(255, 255, 255, 0.5);
    --error: #EF4444;
    --success: #10B981;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-main);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 2rem 1rem;
    position: relative;
    overflow-x: hidden;
}

/* Background Animated Shapes */
.background-shapes {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    overflow: hidden;
    background: linear-gradient(135deg, #fdfbfb 0%, #ebedee 100%);
}

.shape {
    position: absolute;
    filter: blur(80px);
    opacity: 0.6;
    animation: float 20s infinite alternate;
}

.shape-1 {
    top: -10%;
    left: -10%;
    width: 50vw;
    height: 50vw;
    background: var(--primary);
    border-radius: 50%;
}

.shape-2 {
    bottom: -10%;
    right: -10%;
    width: 40vw;
    height: 40vw;
    background: var(--secondary);
    border-radius: 50%;
    animation-delay: -5s;
}

.shape-3 {
    top: 40%;
    left: 40%;
    width: 30vw;
    height: 30vw;
    background: #3B82F6; /* Blue */
    border-radius: 50%;
    animation-delay: -10s;
}

@keyframes float {
    0% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(5%, 10%) scale(1.1); }
    100% { transform: translate(-5%, -10%) scale(0.9); }
}

.container {
    width: 100%;
    max-width: 800px;
    z-index: 1;
}

.form-header {
    text-align: center;
    margin-bottom: 2rem;
    animation: fadeInDown 0.8s ease-out;
}

.logo-placeholder {
    font-size: 3rem;
    margin-bottom: 0.5rem;
    display: inline-block;
    padding: 1rem;
    background: rgba(255,255,255,0.8);
    border-radius: 50%;
    box-shadow: 0 8px 32px rgba(0,0,0,0.1);
    backdrop-filter: blur(10px);
}

.form-header h1 {
    font-size: 2.2rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 0.5rem;
}

.form-header p {
    color: var(--text-muted);
    font-size: 1.1rem;
    font-weight: 500;
}

/* Glassmorphism Panel */
.glass-panel {
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 2.5rem;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
    animation: fadeInUp 0.8s ease-out;
    position: relative;
    overflow: hidden;
}

.form-section {
    margin-bottom: 2.5rem;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeSlideUp 0.6s ease forwards;
}

.form-section:nth-child(1) { animation-delay: 0.2s; }
.form-section:nth-child(2) { animation-delay: 0.4s; }
.form-section:nth-child(3) { animation-delay: 0.6s; }

.form-section h2 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid rgba(79, 70, 229, 0.1);
}

.input-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.full-width {
    grid-column: 1 / -1;
}

.input-group {
    display: flex;
    flex-direction: column;
    position: relative;
}

label {
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
    color: var(--text-main);
    transition: var(--transition);
}

input, select, textarea {
    width: 100%;
    padding: 0.875rem 1rem;
    border-radius: 12px;
    border: 1px solid rgba(0,0,0,0.1);
    background: rgba(255, 255, 255, 0.8);
    font-family: inherit;
    font-size: 1rem;
    color: var(--text-main);
    transition: var(--transition);
    outline: none;
}

input:hover, select:hover, textarea:hover {
    background: rgba(255, 255, 255, 1);
    border-color: rgba(79, 70, 229, 0.3);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.03);
}

input:focus, select:focus, textarea:focus {
    background: rgba(255, 255, 255, 1);
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.1);
    transform: translateY(-2px);
}

input::placeholder, textarea::placeholder {
    color: #9CA3AF;
}

.error-msg {
    color: var(--error);
    font-size: 0.8rem;
    margin-top: 0.4rem;
    display: none;
    animation: fadeIn 0.3s;
}

.input-group.invalid input,
.input-group.invalid select,
.input-group.invalid textarea {
    border-color: var(--error);
    background: rgba(239, 68, 68, 0.05);
}

.input-group.invalid .error-msg {
    display: block;
}

.form-actions {
    margin-top: 3rem;
    display: flex;
    justify-content: flex-end;
}

.submit-btn {
    background: linear-gradient(135deg, var(--primary), var(--primary-hover));
    color: white;
    border: none;
    padding: 1rem 2.5rem;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    transition: var(--transition);
    box-shadow: 0 10px 20px rgba(79, 70, 229, 0.3);
    font-family: inherit;
}

.submit-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 25px rgba(79, 70, 229, 0.4);
}

.submit-btn:active {
    transform: translateY(0);
}

.btn-icon {
    transition: var(--transition);
}

.submit-btn:hover .btn-icon {
    transform: translateX(4px);
}

/* Success Message */
.success-message {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 10;
    text-align: center;
    border-radius: 24px;
    opacity: 0;
    pointer-events: none;
    transition: all 0.5s ease;
}

.success-message:not(.hidden) {
    opacity: 1;
    pointer-events: all;
}

.success-icon {
    width: 80px;
    height: 80px;
    background: var(--success);
    color: white;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 3rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 10px 30px rgba(16, 185, 129, 0.3);
    transform: scale(0);
    transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.success-message:not(.hidden) .success-icon {
    transform: scale(1);
    transition-delay: 0.2s;
}

.success-message h3 {
    font-size: 1.8rem;
    color: var(--success);
    margin-bottom: 0.5rem;
    transform: translateY(20px);
    opacity: 0;
    transition: all 0.5s ease 0.4s;
}

.success-message p {
    color: var(--text-muted);
    font-size: 1.1rem;
    transform: translateY(20px);
    opacity: 0;
    transition: all 0.5s ease 0.5s;
}

.success-message:not(.hidden) h3,
.success-message:not(.hidden) p {
    transform: translateY(0);
    opacity: 1;
}

/* Animations */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(40px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-40px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeSlideUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@media (max-width: 640px) {
    .glass-panel {
        padding: 1.5rem;
    }
    
    .form-header h1 {
        font-size: 1.8rem;
    }
    
    .input-grid {
        grid-template-columns: 1fr;
    }
}

/* New Extentions */
.admin-section {
    background: rgba(224, 231, 255, 0.4);
    padding: 1.5rem;
    border-radius: 16px;
    border: 1px dashed var(--primary);
}

.admin-section h2 {
    color: #3730A3; /* Dark Indigo */
    border-bottom: 2px solid rgba(55, 48, 163, 0.1);
}

.readonly-input {
    background: #E5E7EB !important;
    cursor: not-allowed;
    color: #4B5563 !important;
    font-weight: 600;
}

.sub-heading {
    font-size: 1.05rem;
    color: var(--text-main);
    margin: 1.5rem 0 1rem;
    padding-bottom: 0.25rem;
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.mt-4 {
    margin-top: 1.5rem;
}

.section-desc {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 1rem;
    margin-top: -1rem;
}

.file-input {
    padding: 0.6rem;
    background: rgba(255, 255, 255, 0.5);
    border: 1px dashed var(--primary);
    cursor: pointer;
}

.preview-box {
    margin-top: 0.5rem;
    font-size: 0.85rem;
    color: var(--text-muted);
    min-height: 20px;
}

.action-btn {
    background: white;
    color: var(--primary);
    border: 1px solid var(--primary);
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
}

.action-btn:hover {
    background: var(--primary);
    color: white;
}

/* Print Styles */
@media print {
    body {
        background: white;
        padding: 0;
    }
    .hide-on-print {
        display: none !important;
    }
    .glass-panel {
        background: none;
        box-shadow: none;
        border: none;
        padding: 0;
    }
    .admin-section {
        background: none;
        border: 2px solid #ccc;
    }
    input, select, textarea {
        background: none !important;
        border: 1px solid #ddd !important;
        box-shadow: none !important;
        color: black !important;
    }
    .form-section {
        page-break-inside: avoid;
        margin-bottom: 2rem;
        opacity: 1 !important;
        transform: none !important;
        animation: none !important;
    }
}
