﻿/* StyleNew.css v1 - Combined styles for Login and ResetPassword pages */

:root {
    --pure-white: #ffffff;
    --snow-white: #f8fafc;
    --ice-white: #f1f5f9;
    --crystal: #e2e8f0;
    --silver: #cbd5e1;
    --graphite: #475569;
    --primary: #3b82f6;
    --primary-dark: #2563eb;
    --accent: #06b6d4;
    --success: #10b981;
    --error: #ef4444;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Rubik", sans-serif;
    min-height: 100vh;
    background: linear-gradient(135deg, var(--snow-white) 0%, var(--ice-white) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    position: relative;
    overflow: hidden;
}

/* ===== ANIMAȚII GENERALE ===== */
.floating-background {
    position: absolute;
    width: 100%;
    height: 100%;
    z-index: 1;
    overflow: hidden;
}

.floating-element {
    position: absolute;
    background: var(--pure-white);
    border-radius: 50%;
    opacity: 0.7;
    filter: blur(40px);
    animation: float 15s infinite ease-in-out;
}

.element-1 {
    width: 300px;
    height: 300px;
    top: 10%;
    left: 5%;
    animation-delay: 0s;
}

.element-2 {
    width: 200px;
    height: 200px;
    top: 60%;
    right: 10%;
    animation-delay: 3s;
}

.element-3 {
    width: 150px;
    height: 150px;
    bottom: 20%;
    left: 15%;
    animation-delay: 6s;
}

.element-4 {
    width: 250px;
    height: 250px;
    top: 20%;
    right: 15%;
    animation-delay: 9s;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    33% {
        transform: translateY(-20px) rotate(120deg);
    }
    66% {
        transform: translateY(10px) rotate(240deg);
    }
}

/* ===== PARTICULE ANIMATE ===== */
.particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    pointer-events: none;
}

.particle {
    position: absolute;
    background: var(--pure-white);
    border-radius: 50%;
    opacity: 0;
    animation: particle-float 20s infinite linear;
}

@keyframes particle-float {
    0% {
        transform: translateY(100vh) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 0.7;
    }
    90% {
        opacity: 0.7;
    }
    100% {
        transform: translateY(-100px) rotate(360deg);
        opacity: 0;
    }
}

/* ===== CONTAINERE PRINCIPALE ===== */
.login-container,
.reset-container {
    position: relative;
    z-index: 10;
    width: 100%;
    max-width: 440px;
    margin: 0 auto;
    padding: 50px 40px;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(20px);
    border-radius: 24px;
    box-shadow: 
        0 10px 30px rgba(0, 0, 0, 0.05),
        0 1px 3px rgba(0, 0, 0, 0.05),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.5);
    transform: translateY(0);
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    overflow: hidden;
}

.reset-container {
    max-width: 500px;
}

.login-container::before,
.reset-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.8), transparent);
}

.login-container:hover,
.reset-container:hover {
    box-shadow: 
        0 20px 40px rgba(0, 0, 0, 0.08),
        0 5px 15px rgba(0, 0, 0, 0.05),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

/* ===== HEADER ȘI LOGO ===== */
.logo-container {
    text-align: center;
    margin-bottom: 40px;
    animation: fadeInUp 0.8s ease-out;
}

.logo-container img {
    width: 160px;
    height: auto;
    filter: brightness(1.1) contrast(1.1);
    transition: all 0.5s ease;
}

.logo-container img:hover {
    transform: scale(1.05) rotate(2deg);
    filter: drop-shadow(0 5px 10px rgba(0,0,0,0.1));
}

.reset-header {
    text-align: center;
    margin-bottom: 40px;
    animation: fadeInUp 0.8s ease-out;
}

.reset-icon {
    font-size: 48px;
    color: var(--primary);
    margin-bottom: 20px;
    display: inline-block;
    animation: bounce 2s infinite;
}

.reset-title {
    color: var(--graphite);
    font-size: 28px;
    font-weight: 600;
    margin-bottom: 15px;
}

.reset-subtitle {
    color: var(--silver);
    font-size: 16px;
    line-height: 1.5;
}

/* ===== FORMULARE ȘI INPUT-URI ===== */
.form-group {
    margin-bottom: 25px;
    animation: fadeInUp 0.8s ease-out;
    animation-fill-mode: both;
}

.form-group:nth-child(1) { animation-delay: 0.1s; }
.form-group:nth-child(2) { animation-delay: 0.2s; }
.form-group:nth-child(3) { animation-delay: 0.3s; }
.form-group:nth-child(4) { animation-delay: 0.4s; }

.input-group {
    position: relative;
    display: flex;
    align-items: center;
}

.input-group-addon {
    position: absolute;
    left: 18px;
    z-index: 3;
    background: transparent;
    border: none;
    color: var(--graphite);
    font-size: 1.1em;
    transition: all 0.3s ease;
}

.input-label {
    display: block;
    margin-bottom: 8px;
    color: var(--graphite);
    font-weight: 500;
    font-size: 14px;
}

.required-star {
    color: var(--error);
    font-weight: bold;
    margin-left: 2px;
}

.input-wrapper {
    position: relative;
}

.form-control {
    width: 100%;
    padding: 16px 20px 16px 50px;
    background: var(--pure-white) !important;
    border: 1.5px solid var(--crystal) !important;
    border-radius: 14px !important;
    color: var(--graphite);
    font-size: 15px;
    font-weight: 400;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    height: 52px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.03);
}

.reset-container .form-control {
    padding: 16px 20px;
}

.form-control:focus {
    border-color: var(--primary) !important;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1) !important;
    transform: translateY(-2px);
    background: var(--pure-white) !important;
}

.form-control::placeholder {
    color: var(--silver);
    font-weight: 400;
}

/* ===== CHECKBOX ȘI LINK-URI ===== */
.checkbox {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    animation: fadeInUp 0.8s ease-out;
    animation-delay: 0.3s;
    animation-fill-mode: both;
}

.forgot-password {
    color: var(--graphite);
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
    transition: all 0.3s ease;
    position: relative;
    padding: 5px 0;
}

.forgot-password::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--primary);
    transition: width 0.4s ease;
}

.forgot-password:hover {
    color: var(--primary);
}

.forgot-password:hover::after {
    width: 100%;
}

/* ===== BUTOANE ===== */
.btn-login,
.btn-reset {
    border-radius: 14px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    border: none;
    width: 100%;
    padding: 16px;
    color: white;
    font-weight: 600;
    font-size: 16px;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
    animation: fadeInUp 0.8s ease-out;
    animation-delay: 0.4s;
    animation-fill-mode: both;
}

.btn-login::before,
.btn-reset::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.7s ease;
}

.btn-login:hover,
.btn-reset:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.4);
}

.btn-login:hover::before,
.btn-reset:hover::before {
    left: 100%;
}

.btn-login:active,
.btn-reset:active {
    transform: translateY(-1px);
}

/* ===== SECȚIUNI DE ÎNREGISTRARE ===== */
.register-section {
    text-align: center;
    margin-top: 30px;
    padding-top: 25px;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    animation: fadeInUp 0.8s ease-out;
    animation-delay: 0.5s;
    animation-fill-mode: both;
}

.register-link {
    color: var(--graphite);
    font-size: 15px;
}

.register-link a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    margin-left: 5px;
    transition: all 0.3s ease;
    position: relative;
    padding: 2px 0;
}

.register-link a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--primary);
    transition: width 0.4s ease;
}

.register-link a:hover {
    color: var(--primary-dark);
}

.register-link a:hover::after {
    width: 100%;
}

/* ===== RECAPTCHA ===== */
.recaptcha-container {
    display: flex;
    justify-content: center;
    margin: 25px 0;
    animation: fadeInUp 0.8s ease-out;
    animation-delay: 0.3s;
    animation-fill-mode: both;
}

/* ===== POPUP MODERNIZAT ===== */
.modern-popup {
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(20px);
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1) !important;
}

.success-content {
    text-align: center;
    padding: 40px;
}

.success-icon {
    font-size: 80px;
    color: var(--success);
    margin-bottom: 20px;
    animation: scaleIn 0.6s ease-out;
}

.success-title {
    font-size: 28px;
    color: var(--graphite);
    margin-bottom: 15px;
    font-weight: 600;
}

.success-message {
    color: var(--silver);
    font-size: 16px;
    margin-bottom: 30px;
    line-height: 1.5;
}

.btn-login-return {
    border-radius: 14px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    border: none;
    padding: 16px 30px;
    color: white;
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
}

.btn-login-return:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.4);
}

/* ===== TEXT DE EROARE ===== */
.failure-text {
    text-align: center;
    color: var(--error);
    margin-top: 20px;
    font-weight: 500;
    font-size: 14px;
    padding: 12px 16px;
    background: rgba(239, 68, 68, 0.08);
    border-radius: 10px;
    border-left: 3px solid var(--error);
    animation: shake 0.5s ease-in-out, fadeIn 0.5s ease-out;
}

/* ===== ANIMAȚII ===== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

@keyframes scaleIn {
    from {
        transform: scale(0);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 480px) {
    .login-container,
    .reset-container {
        padding: 40px 30px;
        margin: 10px;
    }
    
    body {
        padding: 10px;
    }
    
    .reset-title {
        font-size: 24px;
    }
    
    .logo-container img {
        width: 140px;
    }
}

/* ===== OVERRIDE PENTRU CONTROALE ASPx ===== */
.dxeTextBox_Moderno, 
.dxeButton_MetropolisBlue {
    border-radius: 14px !important;
}

.dxeButton_MetropolisBlue {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%) !important;
    border: none !important;
    color: white !important;
    font-weight: 600 !important;
}

/* Stiluri specifice pentru pagina de înregistrare */
.registration-container {
    position: relative;
    z-index: 10;
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    padding: 50px 40px;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(20px);
    border-radius: 24px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05), 0 1px 3px rgba(0, 0, 0, 0.05), inset 0 1px 0 rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.5);
    transform: translateY(0);
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    overflow: hidden;
}

    .registration-container::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 1px;
        background: linear-gradient(90deg, transparent, rgba(255,255,255,0.8), transparent);
    }

    .registration-container:hover {
        box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08), 0 5px 15px rgba(0, 0, 0, 0.05), inset 0 1px 0 rgba(255, 255, 255, 0.9);
    }

.registration-header {
    text-align: center;
    margin-bottom: 40px;
    animation: fadeInUp 0.8s ease-out;
}

.registration-title {
    color: var(--graphite);
    font-size: 28px;
    font-weight: 600;
    margin-bottom: 15px;
}

.registration-subtitle {
    color: var(--silver);
    font-size: 16px;
    line-height: 1.5;
}

.form-row {
    display: flex;
    gap: 30px;
    margin-bottom: 20px;
}

.form-column {
    flex: 1;
}

.terms-section {
    margin-top: 20px;
    padding: 15px;
    background: rgba(248, 250, 252, 0.7);
    border-radius: 12px;
    border: 1px solid var(--crystal);
}

.terms-agreement {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.terms-text {
    color: var(--graphite);
    font-size: 14px;
    line-height: 1.4;
}

.terms-link {
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
    padding: 2px 0;
    background: none;
    border: none;
    cursor: pointer;
}

    .terms-link::after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 0;
        width: 0;
        height: 1px;
        background: var(--primary);
        transition: width 0.4s ease;
    }

    .terms-link:hover {
        color: var(--primary-dark);
        background: none;
    }

        .terms-link:hover::after {
            width: 100%;
        }

.btn-register {
    border-radius: 14px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    border: none;
    width: 100%;
    padding: 16px;
    color: white;
    font-weight: 600;
    font-size: 16px;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
    animation: fadeInUp 0.8s ease-out;
    animation-delay: 0.4s;
    animation-fill-mode: both;
}

    .btn-register::before {
        content: '';
        position: absolute;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100%;
        background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
        transition: left 0.7s ease;
    }

    .btn-register:hover {
        transform: translateY(-3px);
        box-shadow: 0 8px 25px rgba(59, 130, 246, 0.4);
    }

        .btn-register:hover::before {
            left: 100%;
        }

    .btn-register:active {
        transform: translateY(-1px);
    }

.login-section {
    text-align: center;
    margin-top: 30px;
    padding-top: 25px;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    animation: fadeInUp 0.8s ease-out;
    animation-delay: 0.5s;
    animation-fill-mode: both;
}

.login-link {
    color: var(--graphite);
    font-size: 15px;
}

    .login-link a {
        color: var(--primary);
        text-decoration: none;
        font-weight: 600;
        margin-left: 5px;
        transition: all 0.3s ease;
        position: relative;
        padding: 2px 0;
    }

        .login-link a::after {
            content: '';
            position: absolute;
            bottom: 0;
            left: 0;
            width: 0;
            height: 1px;
            background: var(--primary);
            transition: width 0.4s ease;
        }

        .login-link a:hover {
            color: var(--primary-dark);
        }

            .login-link a:hover::after {
                width: 100%;
            }

/* Stiluri pentru popup-ul de termeni */
.modern-popup .dxpc-content {
    padding: 0 !important;
}

.modern-popup .dxpc-contentWrapper {
    border-radius: 24px !important;
}

