/* ===================================
   AUTH PAGES STYLES (LOGIN & REGISTER)
   =================================== */
#centraPage-login.padding-without-navtop,
#centraPage-register.padding-without-navtop {
    padding-top: 0;
}
/* ===================================
   AUTH PAGE LAYOUT
   =================================== */
.auth-page {
    background: var(--light-bg);
}

.auth-container {
    position: relative;
    min-height: 100vh;
    padding-top: 76px;
}

.auth-background {
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    width: 100%;
    height: auto;
    overflow: hidden;
    z-index: 0;
    background: var(--gradient-primary);
}

.auth-shape {
    position: absolute;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.15) 0%, transparent 70%);
}

.auth-shape.shape-1 {
    width: 600px;
    height: 600px;
    top: -200px;
    right: -200px;
    animation: float 20s ease-in-out infinite;
}

.auth-shape.shape-2 {
    width: 400px;
    height: 400px;
    bottom: -100px;
    left: -100px;
    animation: float 25s ease-in-out infinite reverse;
}

.auth-shape.shape-3 {
    width: 300px;
    height: 300px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: float 30s ease-in-out infinite;
}

@keyframes float {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }
    50% {
        transform: translate(-30px, -30px) scale(1.1);
    }
}

/* ===================================
   AUTH CARD
   =================================== */
.auth-card {
    background: var(--text-light);
    border-radius: 24px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    position: relative;
    z-index: 1;
}

/* ===================================
   AUTH BRANDING SIDE
   =================================== */
.auth-branding {
    background: var(--gradient-primary);
    height: 100%;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3rem;
    color: var(--text-light);
    position: relative;
    overflow: hidden;
}

.auth-branding::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        linear-gradient(45deg, transparent 30%, rgba(255, 255, 255, 0.05) 30%, rgba(255, 255, 255, 0.05) 70%, transparent 70%),
        linear-gradient(-45deg, transparent 30%, rgba(255, 255, 255, 0.03) 30%, rgba(255, 255, 255, 0.03) 70%, transparent 70%);
    background-size: 60px 60px;
}

.branding-content {
    position: relative;
    z-index: 2;
    text-align: center;
}

.brand-icon-large {
    font-size: 6rem;
    margin-bottom: 2rem;
    opacity: 0.9;
    animation: pulse-slow 3s ease-in-out infinite;
}

@keyframes pulse-slow {
    0%, 100% {
        transform: scale(1);
        opacity: 0.9;
    }
    50% {
        transform: scale(1.05);
        opacity: 1;
    }
}

.auth-branding h2 {
    font-size: 2.25rem;
    font-weight: 900;
    margin-bottom: 1rem;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.auth-branding p {
    font-size: 1.1rem;
    opacity: 0.95;
    margin-bottom: 2.5rem;
    line-height: 1.6;
}

/* Features List (Login) */
.features-list {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    margin-bottom: 2.5rem;
    text-align: left;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 1rem 1.25rem;
    border-radius: 12px;
    transition: var(--transition);
}

.feature-item:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateX(5px);
}

.feature-item i {
    font-size: 1.5rem;
    color: var(--warning-color);
}

.feature-item span {
    font-size: 1rem;
    font-weight: 600;
}

/* Stats Mini */
.stats-mini {
    display: flex;
    justify-content: space-around;
    gap: 2rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.stat-mini {
    text-align: center;
}

.stat-mini strong {
    display: block;
    font-size: 2rem;
    font-weight: 900;
    margin-bottom: 0.25rem;
}

.stat-mini span {
    font-size: 0.875rem;
    opacity: 0.9;
}

/* Benefits List (Register) */
.benefits-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.benefit-item {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 1.25rem;
    border-radius: 12px;
    transition: var(--transition);
}

.benefit-item:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-3px);
}

.benefit-icon {
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.benefit-content {
    flex: 1;
    text-align: left;
}

.benefit-content h4 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.benefit-content p {
    font-size: 0.9rem;
    margin: 0;
    opacity: 0.9;
}

/* ===================================
   AUTH FORM SIDE
   =================================== */
.auth-form-container {
    padding: 3rem;
}

.auth-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.auth-header h1 {
    font-size: 2rem;
    font-weight: 900;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.auth-header p {
    font-size: 1rem;
    color: var(--text-secondary);
}

/* ===================================
   FORM STYLES
   =================================== */
.auth-form {
    width: 100%;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    font-size: 0.95rem;
}

.form-label i {
    color: var(--primary-color);
}

.form-control,
.form-select {
    border: 2px solid var(--border-color);
    border-radius: 12px;
    padding: 0.875rem 1rem;
    font-size: 0.95rem;
    transition: var(--transition);
}

.form-control:focus,
.form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(0, 102, 255, 0.15);
}

.form-control.is-invalid {
    border-color: var(--accent-color);
}

.form-text {
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-top: 0.25rem;
    display: block;
}

/* Password Input Wrapper */
.password-input-wrapper {
    position: relative;
}

.password-toggle {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 0.5rem;
    transition: var(--transition);
}

.password-toggle:hover {
    color: var(--primary-color);
}

/* Password Strength */
.password-strength {
    margin-top: 0.75rem;
}

.strength-bar {
    height: 4px;
    background: var(--border-color);
    border-radius: 2px;
    overflow: hidden;
    margin-bottom: 0.5rem;
}

.strength-fill {
    height: 100%;
    width: 0%;
    background: var(--accent-color);
    transition: all 0.3s ease;
    border-radius: 2px;
}

.strength-fill.weak {
    width: 33%;
    background: var(--accent-color);
}

.strength-fill.medium {
    width: 66%;
    background: var(--warning-color);
}

.strength-fill.strong {
    width: 100%;
    background: var(--success-color);
}

.strength-text {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.strength-text span {
    font-weight: 600;
}

/* Form Options */
.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.form-check-input:checked {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.form-check-label {
    font-size: 0.9rem;
    color: var(--text-secondary);
    cursor: pointer;
}

.forgot-password {
    font-size: 0.9rem;
    color: var(--primary-color);
    font-weight: 600;
    text-decoration: none;
}

.forgot-password:hover {
    text-decoration: underline;
}

.password-input-wrapper .is-invalid~.invalid-feedback {
    display: block;
}
form#forgotPasswordForm .btn.btn-primary{
    background: var(--gradient-primary);
    border: none;
    color: var(--text-light);
    transition: var(--transition);
}

.auth-form fieldset.contexts legend {
    font-size: 1rem;
    font-weight: normal;
}
.auth-form fieldset.roles legend{
    font-size: 0.875rem;
    font-weight: normal;
}
.auth-form #contextOptinGroup ul.contexts li.context{
    margin-bottom: 1.5rem;
}
.auth-form #contextOptinGroup div.name{
    font-size: 1rem;
    font-weight: 600;
}

/* Submit Button */
.btn-submit {
    border-radius: 12px;
    font-weight: 700;
    padding: 0.875rem 2rem;
    transition: var(--transition);
}

.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 102, 255, 0.3);
}

/* Divider */
.divider {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin: 2rem 0;
    color: var(--text-secondary);
}

.divider::before,
.divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--border-color);
}

.divider span {
    font-size: 0.8rem;
    font-weight: 600;
}

/* Social Login */
.social-login {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
}

.btn-social {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 0.875rem 1rem;
    border: 2px solid var(--border-color);
    border-radius: 12px;
    background: var(--text-light);
    color: var(--text-primary);
    font-weight: 600;
    font-size: 0.9rem;
    transition: var(--transition);
}

.btn-social:hover {
    border-color: var(--primary-color);
    background: var(--light-bg);
    transform: translateY(-2px);
}

.btn-social i {
    font-size: 1.5rem;
}

.btn-social.google:hover {
    border-color: #db4437;
    color: #db4437;
}

.btn-social.orcid:hover {
    border-color: #a6ce39;
    color: #a6ce39;
}
.auth-form .btn.btn-primary{
    background: var(--gradient-primary);
    border: none;
    color: var(--text-light);
    transition: var(--transition);
}
/* Auth Footer */
.auth-footer {
    text-align: center;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-color);
}

.auth-footer p {
    margin: 0;
    font-size: 0.95rem;
    color: var(--text-secondary);
}

.auth-footer a {
    color: var(--primary-color);
    font-weight: 600;
    text-decoration: none;
}

.auth-footer a:hover {
    text-decoration: underline;
}

/* ===================================
   REGISTRATION STEPS
   =================================== */
.registration-steps {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 2.5rem;
    padding: 0 1rem;
}

.step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.step-number {
    width: 40px;
    height: 40px;
    background: var(--light-bg);
    border: 2px solid var(--border-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: var(--text-secondary);
    transition: var(--transition);
}

.step.active .step-number {
    background: var(--gradient-primary);
    color: var(--text-light);
    border-color: var(--primary-color);
    box-shadow: 0 4px 12px rgba(0, 102, 255, 0.3);
}

.step.completed .step-number {
    background: var(--success-color);
    color: var(--text-light);
    border-color: var(--success-color);
}

.step-label {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-secondary);
}

.step.active .step-label {
    color: var(--primary-color);
}

.step.completed .step-label {
    color: var(--success-color);
}

.step-line {
    width: 60px;
    height: 2px;
    background: var(--border-color);
    margin: 0 0.5rem;
    margin-bottom: 1.5rem;
}

.step.active ~ .step-line,
.step.completed ~ .step-line {
    background: var(--primary-color);
}

/* Form Steps */
.form-step {
    display: none;
}

.form-step.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Form Navigation */
.form-navigation {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

.form-navigation .btn {
    flex: 1;
    border-radius: 12px;
    padding: 0.875rem 1rem;
    font-weight: 600;
}

/* Completion Message */
.completion-message {
    text-align: center;
    padding: 2rem 0;
    margin-bottom: 2rem;
}

.completion-message i {
    font-size: 4rem;
    color: var(--success-color);
    margin-bottom: 1rem;
}

.completion-message h3 {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.completion-message p {
    font-size: 1rem;
    color: var(--text-secondary);
}

/* Terms Section */
.terms-section {
    background: var(--light-bg);
    padding: 1.5rem;
    border-radius: 12px;
    margin-bottom: 1.5rem;
}

.terms-section .form-check {
    margin-bottom: 1rem;
    align-items: flex-start;
}

.terms-section .form-check:last-child {
    margin-bottom: 0;
}

.terms-section a {
    color: var(--primary-color);
    font-weight: 600;
}

/* Success Modal */
.success-icon {
    font-size: 5rem;
    color: var(--success-color);
    margin-bottom: 1.5rem;
}

.success-icon i {
    animation: scaleIn 0.5s ease;
}

@keyframes scaleIn {
    from {
        transform: scale(0);
    }
    to {
        transform: scale(1);
    }
}

/* ===================================
   FOOTER
   =================================== */
#auth-footer {
    background: var(--text-light);
    padding: 1.5rem 0;
    border-top: 1px solid var(--border-color);
    position: relative;
    z-index: 1;
}

#auth-footer p {
    margin: 0;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.footer-links {
    display: block;
}

.footer-links a {
    color: var(--text-secondary);
    font-size: 0.9rem;
    text-decoration: none;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--primary-color);
}

/* ===================================
   RESPONSIVE DESIGN
   =================================== */
@media (max-width: 991.98px) {
    .auth-branding {
        min-height: 400px;
        padding: 2rem;
    }

    .brand-icon-large {
        font-size: 4rem;
    }

    .auth-branding h2 {
        font-size: 1.75rem;
    }

    .auth-branding p {
        font-size: 1rem;
    }

    .stats-mini {
        gap: 1rem;
    }

    .stat-mini strong {
        font-size: 1.5rem;
    }

    .auth-form-container {
        padding: 2.5rem;
    }
}

@media (max-width: 767.98px) {
    .auth-container {
        padding-top: 70px;
    }

    .auth-form-container {
        padding: 2rem;
    }

    .auth-header h1 {
        font-size: 1.75rem;
    }

    .social-login {
        flex-direction: column;
    }

    .registration-steps {
        padding: 0;
    }

    .step-number {
        width: 35px;
        height: 35px;
        font-size: 0.9rem;
    }

    .step-label {
        font-size: 0.7rem;
    }

    .step-line {
        width: 40px;
    }

    .form-navigation {
        flex-direction: column;
    }

    .footer-links {
        margin-top: 1rem;
    }
}

@media (max-width: 575.98px) {
    .auth-form-container {
        padding: 1.5rem;
    }

    .auth-header {
        margin-bottom: 2rem;
    }

    .form-group {
        margin-bottom: 1.25rem;
    }

    .btn-social span {
        display: none;
    }

    .btn-social {
        justify-content: center;
    }
}

/* ===================================
   ANIMATIONS
   =================================== */
.auth-card {
    animation: slideUp 0.6s ease-out;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===================================
   PRINT STYLES
   =================================== */
@media print {
    .navbar,
    .mobile-sidebar,
    .auth-background,
    #auth-footer,
    .social-login,
    .divider {
        display: none !important;
    }

    .auth-card {
        box-shadow: none;
    }
}
