/* AUTHENTIFICATION CSS - GAS INSTITUT */
:root {
    --primary: #e91e63;
    --primary-dark: #c2185b;
    --secondary: #673ab7;
    --accent: #ff4081;
    --success: #4caf50;
    --error: #f44336;
    --warning: #ff9800;
    --dark: #1a1a1a;
    --gray: #666;
    --light-gray: #e0e0e0;
    --bg-light: #fafafa;
}

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

.auth-page {
    font-family: 'Inter', sans-serif;
    min-height: 100vh;
    overflow-x: hidden;
}

.auth-container {
    display: flex;
    min-height: 100vh;
}

/* LEFT SIDE */
.auth-left {
    flex: 1;
    background-size: cover;
    background-position: center;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4rem;
    overflow: hidden;
}

.auth-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(233, 30, 99, 0.95) 0%, rgba(103, 58, 183, 0.95) 100%);
    z-index: 1;
}

.auth-particles {
    position: absolute;
    inset: 0;
    z-index: 2;
    background-image: 
        radial-gradient(circle at 20% 50%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 40% 20%, rgba(255, 255, 255, 0.05) 0%, transparent 50%);
    animation: particleMove 20s ease-in-out infinite;
}

@keyframes particleMove {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(30px, -30px) scale(1.1); }
    66% { transform: translate(-20px, 20px) scale(0.9); }
}

.auth-content {
    position: relative;
    z-index: 3;
    color: white;
    max-width: 550px;
    animation: fadeInLeft 1s ease-out;
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 3rem;
    animation: fadeInLeft 1s ease-out 0.2s backwards;
}

.logo-circle {
    width: 70px;
    height: 70px;
    background: white;
    color: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Playfair Display', serif;
    font-weight: 800;
    font-size: 1.5rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    animation: pulse 3s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3); }
    50% { transform: scale(1.05); box-shadow: 0 15px 50px rgba(0, 0, 0, 0.4); }
}

.logo-container h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    font-weight: 700;
    letter-spacing: 3px;
}

.auth-title {
    font-family: 'Playfair Display', serif;
    font-size: 4rem;
    font-weight: 800;
    margin-bottom: 1rem;
    line-height: 1.1;
    animation: fadeInLeft 1s ease-out 0.4s backwards;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.auth-subtitle {
    font-size: 1.3rem;
    margin-bottom: 3rem;
    opacity: 0.95;
    animation: fadeInLeft 1s ease-out 0.6s backwards;
    font-weight: 300;
}

/* STATS */
.auth-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 3rem;
}

.stat-item {
    text-align: center;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    animation: fadeInUp 1s ease-out backwards;
}

.stat-item:nth-child(1) { animation-delay: 0.8s; }
.stat-item:nth-child(2) { animation-delay: 0.9s; }
.stat-item:nth-child(3) { animation-delay: 1s; }

.stat-item:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-10px);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    font-family: 'Playfair Display', serif;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 0.9rem;
    opacity: 0.9;
}

/* BENEFITS */
.auth-benefits {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-top: 3rem;
}

.benefit-item {
    padding: 2rem;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    animation: fadeInUp 1s ease-out backwards;
}

.benefit-item:nth-child(1) { animation-delay: 0.8s; }
.benefit-item:nth-child(2) { animation-delay: 0.9s; }
.benefit-item:nth-child(3) { animation-delay: 1s; }

.benefit-item:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateX(15px);
}

.benefit-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.2));
}

.benefit-item h4 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.benefit-item p {
    opacity: 0.9;
    font-size: 0.95rem;
}

/* STEPS */
.auth-steps {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-top: 3rem;
}

.step-item {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    animation: fadeInUp 1s ease-out backwards;
}

.step-item:nth-child(1) { animation-delay: 0.8s; }
.step-item:nth-child(2) { animation-delay: 0.9s; }
.step-item:nth-child(3) { animation-delay: 1s; }

.step-item:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateX(15px);
}

.step-number {
    width: 50px;
    height: 50px;
    background: white;
    color: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.3rem;
    flex-shrink: 0;
}

.step-item p {
    font-size: 1.05rem;
    margin: 0;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* RIGHT SIDE */
.auth-right {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3rem;
    background: white;
    position: relative;
}

.auth-right::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(233, 30, 99, 0.05) 0%, transparent 70%);
    animation: rotate 30s linear infinite;
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.auth-form-container {
    width: 100%;
    max-width: 500px;
    position: relative;
    z-index: 1;
    animation: fadeInUp 1s ease-out 0.3s backwards;
}

.auth-header {
    text-align: center;
    margin-bottom: 3rem;
}

.icon-circle {
    width: 90px;
    height: 90px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 3rem;
    box-shadow: 0 15px 40px rgba(233, 30, 99, 0.3);
    animation: pulse 3s ease-in-out infinite;
}

.auth-header h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    color: var(--dark);
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.auth-header p {
    color: var(--gray);
    font-size: 1.05rem;
}

/* FORM */
.auth-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

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

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.form-group label {
    font-weight: 600;
    color: var(--dark);
    font-size: 0.95rem;
}

.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.input-wrapper input {
    width: 100%;
    padding: 1.1rem 3.5rem 1.1rem 3.5rem;
    border: 2px solid var(--light-gray);
    border-radius: 15px;
    font-size: 1rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: var(--bg-light);
    font-family: 'Inter', sans-serif;
}

.input-wrapper input:focus {
    outline: none;
    border-color: var(--primary);
    background: white;
    box-shadow: 0 0 0 4px rgba(233, 30, 99, 0.1);
    transform: translateY(-2px);
}

.input-icon-left {
    position: absolute;
    left: 1.2rem;
    font-size: 1.3rem;
    opacity: 0.5;
    transition: all 0.3s ease;
    pointer-events: none;
}

.input-wrapper input:focus ~ .input-icon-left,
.input-wrapper input:not(:placeholder-shown) ~ .input-icon-left {
    opacity: 1;
    transform: scale(1.1);
}

.input-check {
    position: absolute;
    right: 1.2rem;
    color: var(--success);
    font-size: 1.3rem;
    font-weight: bold;
    opacity: 0;
    transform: scale(0);
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.form-group.valid .input-check {
    opacity: 1;
    transform: scale(1);
}

.toggle-password {
    position: absolute;
    right: 1.2rem;
    font-size: 1.3rem;
    cursor: pointer;
    opacity: 0.5;
    transition: all 0.3s ease;
    user-select: none;
}

.toggle-password:hover {
    opacity: 1;
    transform: scale(1.1);
}

.error-message {
    color: var(--error);
    font-size: 0.85rem;
    display: none;
    padding-left: 0.5rem;
}

.form-group.error .error-message {
    display: block;
    animation: shake 0.5s ease;
}

.form-group.error input {
    border-color: var(--error);
    background: rgba(244, 67, 54, 0.05);
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-10px); }
    75% { transform: translateX(10px); }
}

/* PASSWORD STRENGTH */
.password-strength {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-top: 0.5rem;
}

.strength-bar {
    flex: 1;
    height: 5px;
    background: var(--light-gray);
    border-radius: 10px;
    overflow: hidden;
    position: relative;
}

.strength-bar::after {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 0;
    transition: all 0.4s ease;
    border-radius: 10px;
}

.strength-bar.weak::after {
    width: 33%;
    background: var(--error);
}

.strength-bar.medium::after {
    width: 66%;
    background: var(--warning);
}

.strength-bar.strong::after {
    width: 100%;
    background: var(--success);
}

.strength-text {
    font-size: 0.85rem;
    font-weight: 600;
    min-width: 80px;
}

/* FORM OPTIONS */
.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.95rem;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    cursor: pointer;
    user-select: none;
    position: relative;
}

.checkbox-label input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    cursor: pointer;
}

.checkbox-custom {
    width: 22px;
    height: 22px;
    border: 2px solid var(--light-gray);
    border-radius: 6px;
    transition: all 0.3s ease;
    position: relative;
    flex-shrink: 0;
}

.checkbox-label input[type="checkbox"]:checked ~ .checkbox-custom {
    background: var(--primary);
    border-color: var(--primary);
}

.checkbox-label input[type="checkbox"]:checked ~ .checkbox-custom::after {
    content: '✓';
    position: absolute;
    color: white;
    font-size: 14px;
    font-weight: bold;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.link-primary {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    position: relative;
}

.link-primary::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: width 0.3s ease;
}

.link-primary:hover::after {
    width: 100%;
}

.link-primary:hover {
    color: var(--primary-dark);
}

/* BUTTON */
.btn-auth {
    padding: 1.2rem 2rem;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: white;
    border: none;
    border-radius: 15px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(233, 30, 99, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1rem;
}

.btn-auth::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-auth:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(233, 30, 99, 0.4);
}

.btn-auth:hover::before {
    width: 400px;
    height: 400px;
}

.btn-auth:active {
    transform: translateY(-1px);
}

.btn-loader {
    display: none;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.btn-auth.loading .btn-text {
    opacity: 0.5;
}

.btn-auth.loading .btn-loader {
    display: block;
}

.btn-auth.loading .btn-icon {
    display: none;
}

.btn-icon {
    font-size: 1.5rem;
    transition: transform 0.3s ease;
}

.btn-auth:hover .btn-icon {
    transform: translateX(5px);
}

/* DIVIDER */
.auth-divider {
    display: flex;
    align-items: center;
    text-align: center;
    color: var(--gray);
    margin: 2rem 0 1.5rem;
    position: relative;
}

.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid var(--light-gray);
}

.auth-divider span {
    padding: 0 1.5rem;
    font-size: 0.9rem;
    background: white;
    position: relative;
    z-index: 1;
}

/* SOCIAL LOGIN */
.social-login {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.btn-social {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.7rem;
    padding: 1rem;
    border: 2px solid var(--light-gray);
    border-radius: 15px;
    background: white;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 0.95rem;
}

.btn-social:hover {
    border-color: var(--gray);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.btn-social svg {
    flex-shrink: 0;
}

/* SUCCESS MESSAGE */
.success-message {
    display: none;
    text-align: center;
    padding: 3rem 2rem;
    background: linear-gradient(135deg, var(--success), #66bb6a);
    border-radius: 20px;
    color: white;
    animation: fadeInUp 0.6s ease-out;
}

.success-message.show {
    display: block;
}

.success-icon {
    width: 80px;
    height: 80px;
    background: white;
    color: var(--success);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    font-weight: bold;
    margin: 0 auto 1.5rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    animation: successPop 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

@keyframes successPop {
    0% { transform: scale(0); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

.success-message h3 {
    font-size: 1.8rem;
    margin-bottom: 0.8rem;
}

.success-message p {
    font-size: 1.05rem;
    opacity: 0.95;
    margin-bottom: 1.5rem;
}

.btn-back {
    display: inline-block;
    padding: 0.8rem 2rem;
    background: white;
    color: var(--success);
    border-radius: 10px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-back:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* FOOTER */
.auth-footer {
    text-align: center;
    margin-top: 2rem;
    color: var(--gray);
}

.auth-footer p {
    margin: 0.7rem 0;
    font-size: 0.95rem;
}

/* RESPONSIVE */
@media (max-width: 1024px) {
    .auth-container {
        flex-direction: column;
    }
    
    .auth-left {
        min-height: 50vh;
        padding: 3rem 2rem;
    }
    
    .auth-title {
        font-size: 3rem;
    }
    
    .auth-stats {
        grid-template-columns: repeat(3, 1fr);
        gap: 1rem;
    }
    
    .stat-item {
        padding: 1rem;
    }
    
    .stat-number {
        font-size: 2rem;
    }
}

@media (max-width: 768px) {
    .auth-left {
        padding: 2rem 1.5rem;
    }
    
    .auth-title {
        font-size: 2.5rem;
    }
    
    .auth-subtitle {
        font-size: 1.1rem;
    }
    
    .auth-right {
        padding: 2rem 1.5rem;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .social-login {
        grid-template-columns: 1fr;
    }
    
    .auth-benefits,
    .auth-steps {
        gap: 1rem;
    }
    
    .benefit-item,
    .step-item {
        padding: 1.5rem;
    }
}

@media (max-width: 480px) {
    .auth-title {
        font-size: 2rem;
    }
    
    .logo-circle {
        width: 60px;
        height: 60px;
        font-size: 1.3rem;
    }
    
    .logo-container h3 {
        font-size: 1.5rem;
    }
    
    .auth-header h2 {
        font-size: 2rem;
    }
    
    .icon-circle {
        width: 70px;
        height: 70px;
        font-size: 2.5rem;
    }
    
    .input-wrapper input {
        padding: 1rem 3rem;
    }
    
    .form-options {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
    }
}
