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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #dbeafe 0%, #e0e7ff 50%, #f3e8ff 100%);
    min-height: 100vh;
    padding: 2rem 1rem;
}

.container {
    max-width: 1000px;
    margin: 0 auto;
}

/* .header {
      text-align: center;
      margin-bottom: 2rem;
      animation: fadeIn 0.6s ease-out;
    } */

.header {
    display: flex;
    align-items: center;
    /* vertically align logo and text */
    justify-content: center;
    /* horizontally center the whole header */
    gap: 1.5rem;
    /* space between logo and text */
    padding: 1rem;
    text-align: left;
    /* keep text aligned left inside text-content */
}

.logo-circle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, #2563eb 0%, #9333ea 100%);
    border-radius: 50%;
    /* margin-bottom: 1rem; */
    flex-shrink: 0;
}

.logo-icon {
    width: 62px;
    height: 62px;
    /* fill: white; */
    border-radius: 50%;
    /* make image rounded */
    object-fit: cover;
    /* crop the image to fit the circle nicely */
}

.main-title {
    font-size: 2.5rem;
    font-weight: bold;
    background: linear-gradient(135deg, #2563eb 0%, #9333ea 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 0.5rem;
    margin: 0;
}

.subtitle {
    /* color: #6b7280; */
    font-size: 1.125rem;
    margin: 0;
    color: #555;
}

.header {
    display: flex;
    align-items: center;
    /* vertical align logo and text */
    gap: 1.5rem;
    /* space between logo and text */
    padding: 1rem;
}

.text-content {
    display: flex;
    flex-direction: column;
}



.form-card {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    border-radius: 1rem;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    padding: 2rem;
    animation: scaleIn 0.4s ease-out;
}

.form-title {
    font-size: 1.5rem;
    text-align: center;
    color: #1f2937;
    margin-bottom: 2rem;
}

.section {
    margin-bottom: 2rem;
}

.section-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.125rem;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 1rem;
}

.section-icon {
    width: 20px;
    height: 20px;
    fill: #2563eb;
}

.form-group {
    margin-bottom: 1rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

.form-row.cols-2 {
    grid-template-columns: 1fr 1fr;
}

.form-row.cols-3 {
    grid-template-columns: 1fr 1fr 1fr;
}

@media (max-width: 768px) {

    .form-row.cols-2,
    .form-row.cols-3 {
        grid-template-columns: 1fr;
    }
}

.form-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    color: #374151;
    margin-bottom: 0.5rem;
}

.required {
    color: #ef4444;
}

.input-wrapper {
    position: relative;
}

.input-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    width: 16px;
    height: 16px;
    fill: #9ca3af;
    pointer-events: none;
}

.form-input {
    width: 100%;
    height: 48px;
    padding: 0 1rem;
    border: 1px solid #d1d5db;
    border-radius: 0.5rem;
    font-size: 1rem;
    background: white;
    transition: all 0.2s ease;
}

.form-input.with-icon {
    padding-left: 2.5rem;
}

.form-input:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.form-textarea {
    width: 100%;
    min-height: 100px;
    padding: 0.75rem 1rem;
    border: 1px solid #d1d5db;
    border-radius: 0.5rem;
    font-size: 1rem;
    background: white;
    resize: vertical;
    transition: all 0.2s ease;
}

.form-textarea:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.file-input {
    width: 100%;
    height: 48px;
    padding: 0.5rem 1rem;
    border: 1px solid #d1d5db;
    border-radius: 0.5rem;
    font-size: 1rem;
    background: white;
    transition: all 0.2s ease;
}

.file-input:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.help-text {
    font-size: 0.875rem;
    color: #6b7280;
    margin-top: 0.5rem;
}

.submit-btn {
    width: 100%;
    height: 48px;
    background: linear-gradient(135deg, #2563eb 0%, #9333ea 100%);
    color: white;
    border: none;
    border-radius: 0.5rem;
    font-size: 1.125rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 1.5rem;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(37, 99, 235, 0.3);
}

.submit-btn:active {
    transform: translateY(0);
}

.submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.login-link {
    text-align: center;
    margin-top: 1.5rem;
    color: #6b7280;
}

.login-link a {
    color: #2563eb;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s ease;
}

.login-link a:hover {
    color: #1d4ed8;
}

.footer {
    text-align: center;
    margin-top: 2rem;
    color: #6b7280;
    font-size: 0.875rem;
}

.footer a {
    color: #2563eb;
    text-decoration: none;
    font-weight: 600;
}

.footer a:hover {
    color: #1d4ed8;
}

.error-message {
    color: #ef4444;
    font-size: 0.875rem;
    margin-top: 0.25rem;
    display: none;
}

.success-message {
    background: #10b981;
    color: white;
    padding: 1rem;
    border-radius: 0.5rem;
    text-align: center;
    margin-top: 1rem;
    display: none;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

.animate-fade-in {
    animation: fadeIn 0.6s ease-out;
}

.animate-scale-in {
    animation: scaleIn 0.4s ease-out;
}

/* Loading state */
.loading {
    position: relative;
    overflow: hidden;
}

.loading::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% {
        left: -100%;
    }

    100% {
        left: 100%;
    }
}