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

:root {
    --background: hsl(210, 29%, 97%);
    --foreground: hsl(0, 0%, 10%);
    --primary: hsl(194, 100%, 46%);
    --primary-foreground: hsl(0, 0%, 100%);
    --primary-glow: hsl(194, 100%, 60%);
    --secondary: hsl(189, 100%, 23%);
    --secondary-foreground: hsl(0, 0%, 100%);
    --muted: hsl(186, 67%, 94%);
    --muted-foreground: hsl(189, 100%, 23%);
    --border: hsl(186, 67%, 88%);
    --card: hsl(0, 0%, 100%);
    --card-foreground: hsl(0, 0%, 10%);
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--background);
    color: var(--foreground);
    line-height: 1.6;
    overflow-x: hidden;
    overflow-y: hidden;
    position: relative;
    min-height: 100vh;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 50%, hsla(194, 100%, 46%, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, hsla(189, 100%, 23%, 0.05) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}

.grid-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(hsla(194, 100%, 46%, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, hsla(194, 100%, 46%, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    pointer-events: none;
    z-index: 0;
    animation: gridMove 20s linear infinite;
}

@keyframes gridMove {
    0% { transform: translate(0, 0); }
    100% { transform: translate(50px, 50px); }
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Outfit', sans-serif;
}

.container {
    position: relative;
    z-index: 1;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.auth-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    max-width: 1300px;
    width: 100%;
    align-items: flex-start;
}

.auth-left {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    margin-top: 10px;
    position: sticky;
}

.auth-left h1 {
    font-size: clamp(2rem, 4vw, 3.5rem);
    font-weight: 900;
    line-height: 1.2;
    letter-spacing: -0.02em;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.auth-left p {
    font-size: 1.125rem;
    color: var(--muted-foreground);
    line-height: 1.7;
    max-width: 500px;
}

.benefits-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-top: 2rem;
}

.benefit-item {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.benefit-icon {
    width: 2.5rem;
    height: 2.5rem;
    background: linear-gradient(135deg, var(--primary), var(--primary-glow));
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    flex-shrink: 0;
    box-shadow: 0 4px 16px hsla(194, 100%, 46%, 0.3);
}

.benefit-item h3 {
    font-size: 1.0625rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.benefit-item p {
    font-size: 0.9375rem;
    color: var(--muted-foreground);
    margin: 0;
}

.auth-right {
    display: flex;
    justify-content: center;
}

.auth-card {
    background: var(--card);
    border-radius: 1.75rem;
    padding: 2.5rem;
    box-shadow: 
        0 8px 32px hsla(189, 100%, 23%, 0.1),
        0 0 0 1px hsla(186, 67%, 88%, 0.5);
    backdrop-filter: blur(20px);
    width: 100%;
    max-width: 550px;
    animation: slideInRight 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    max-height: 90vh;
    overflow-y: auto;
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(40px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.auth-card h2 {
    font-size: 1.875rem;
    font-weight: 900;
    margin-bottom: 0.5rem;
    letter-spacing: -0.01em;
}

.auth-card .subtitle {
    color: var(--muted-foreground);
    font-size: 0.9375rem;
    margin-bottom: 1.5rem;
}

.form-section {
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border);
}

.form-section:last-of-type {
    border-bottom: none;
    margin-bottom: 1rem;
}

.form-section-title {
    font-size: 0.875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--primary);
    margin-bottom: 1rem;
}

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

.form-row .email-personal {
    grid-column: span 2;
}


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

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

.form-row .form-group {
    margin-bottom: 0;
}

.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.35rem;
    color: var(--foreground);
    font-size: 0.9375rem;
}

.form-group label .required {
    color: var(--primary);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.7rem 1rem;
    border: 2px solid var(--border);
    border-radius: 0.875rem;
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: var(--background);
    color: var(--foreground);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    background: white;
    box-shadow: 0 0 0 3px hsla(194, 100%, 46%, 0.1);
}

.form-group input::placeholder,
.form-group select::placeholder {
    color: var(--muted-foreground);
}

.form-group select {
    width: 100%;
    padding: 0.7rem 1rem;
    border: 2px solid var(--border);
    border-radius: 0.875rem;
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    background: var(--background);
    color: var(--foreground);
    appearance: none;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.05);
    background-image: 
        url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23005a9f' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 1rem;
}

.form-group select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px hsla(194, 100%, 46%, 0.1);
    background: white;
}
.form-group select:hover {
    border-color: var(--primary);
    box-shadow: 0 0 8px hsla(194, 100%, 46%, 0.15);
    background: linear-gradient(180deg, var(--muted), var(--background));
}
.form-group select option {
    padding: 0.5rem 1rem;
    font-size: 0.95rem;
    color: var(--foreground);
}


.file-upload-wrapper {
    position: relative;
    overflow: hidden;
}

.file-upload-wrapper input[type="file"] {
    position: absolute;
    opacity: 0;
    width: 100%;
    height: 100%;
    cursor: pointer;
}

.file-upload-label {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    border: 2px dashed var(--border);
    border-radius: 0.875rem;
    background: var(--background);
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    font-size: 0.9rem;
    color: var(--muted-foreground);
}

.file-upload-wrapper:hover .file-upload-label {
    border-color: var(--primary);
    background: hsla(194, 100%, 46%, 0.05);
}

.file-name {
    font-size: 0.85rem;
    color: var(--primary);
    font-weight: 600;
    margin-top: 0.5rem;
}

.terms-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin: 1.5rem 0;
    font-size: 0.8rem;
}

.terms-checkbox input[type="checkbox"] {
    width: 1.125rem;
    height: 1.125rem;
    cursor: pointer;
    accent-color: var(--primary);
    margin-top: 0.125rem;
    flex-shrink: 0;
}

.terms-checkbox label {
    cursor: pointer;
    margin: 0;
    font-weight: 400;
    line-height: 1.4;
}

.terms-checkbox a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.terms-checkbox a:hover {
    color: var(--secondary);
}

.btn-register {
    width: 100%;
    padding: 0.9rem;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    border: none;
    border-radius: 0.875rem;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 24px hsla(194, 100%, 46%, 0.35);
    position: relative;
    overflow: hidden;
    font-family: 'Inter', sans-serif;
    margin-bottom: 1.2rem;
    margin-top: 1.5rem;
}

.btn-register::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn-register:hover::before {
    width: 300px;
    height: 300px;
}

.btn-register:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 40px hsla(194, 100%, 46%, 0.5);
}

.btn-register span {
    position: relative;
    z-index: 1;
}

.divider {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin: 1.2rem 0;
    color: var(--muted-foreground);
    font-size: 0.875rem;
}

.divider::before,
.divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--border);
}

.social-login {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.8rem;
    margin-bottom: 1.2rem;
}

.btn-social {
    padding: 0.7rem;
    border: 2px solid var(--border);
    border-radius: 0.875rem;
    background: white;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
}

.btn-social:hover {
    border-color: var(--primary);
    background: var(--muted);
    transform: translateY(-2px);
    box-shadow: 0 4px 16px hsla(194, 100%, 46%, 0.15);
}

.auth-footer {
    text-align: center;
    color: var(--muted-foreground);
    font-size: 0.9375rem;
}

.auth-footer a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 700;
    transition: all 0.3s ease;
}

.auth-footer a:hover {
    color: var(--secondary);
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    color: var(--foreground);
    margin-bottom: 2rem;
    font-size: 1.375rem;
    font-weight: 900;
    font-family: 'Outfit', sans-serif;
}

.logo-icon {
    width: 2.75rem;
    height: 2.75rem;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 0.875rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 900;
    font-size: 1.5rem;
    box-shadow: 0 4px 24px hsla(194, 100%, 46%, 0.4), 0 0 40px hsla(194, 100%, 46%, 0.2);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.logo-icon::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255,255,255,0.3), transparent);
    transform: rotate(45deg);
    animation: shimmer 3s infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%) translateY(-100%) rotate(45deg); }
    100% { transform: translateX(100%) translateY(100%) rotate(45deg); }
}

.logo:hover .logo-icon {
    transform: scale(1.08) rotate(-5deg);
    box-shadow: 
        0 8px 32px hsla(194, 100%, 46%, 0.5),
        0 0 60px hsla(194, 100%, 46%, 0.3);
}

html {
    scroll-behavior: smooth;
}

::-webkit-scrollbar {
    width: 12px;
}

::-webkit-scrollbar-track {
    background: var(--background);
    margin: 30px 0;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--primary), var(--secondary));
    border-radius: 10px;
    border: 2px solid var(--background);
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, var(--primary-glow), var(--primary));
}

@media (max-width: 768px) {
    .auth-wrapper {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .auth-left {
        display: none;
    }

    .auth-card {
        max-width: 100%;
        max-height: none;
        padding: 2rem;
    }

    .auth-card h2 {
        font-size: 1.5rem;
    }

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

    .social-login {
        grid-template-columns: 1fr;
    }

     .form-row .email-personal {
        grid-column: span 1;
    }
}