﻿/* ===== IDENTITY PAGES STYLES ===== */
:root {
    --primary-blue: #2487ce;
    --primary-blue-hover: #469fdf;
    --danger-color: #dc3545;
    --success-color: #28a745;
    --light-gray-bg: #f8f9fa;
    --text-dark: #444444;
    --text-light: #666666;
    --border-light: #e9ecef;
    --white: #ffffff;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: "Open Sans", sans-serif;
    color: var(--text-dark);
    background-color: var(--light-gray-bg);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: "Raleway", sans-serif;
    font-weight: 700;
}

a {
    color: var(--primary-blue);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--primary-blue-hover);
}

/* ===== IDENTITY CONTAINER ===== */
.identity-container {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    background: linear-gradient(135deg, #f5f7fa 0%, #f8f9fa 100%);
    padding: 20px 0;
}

.identity-wrapper {
    display: grid;
    grid-template-columns: 1.2fr 1fr;  /* Cambié de 1fr 1fr a 1.2fr 1fr */
    gap: 0;
    width: 100%;
    max-width: 1200px;
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    animation: slideInUp 0.6s ease-out;
}

/* ===== ILLUSTRATION SIDE ===== */
.identity-illustration {
    background: linear-gradient(135deg, #2487ce 0%, #1a5fa0 100%);
    color: var(--white);
    padding: 60px 50px;  /* Cambié de 60px 40px a 60px 50px */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.identity-illustration::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 500px;
    height: 500px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    animation: float 6s ease-in-out infinite;
}

.identity-illustration::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -30%;
    width: 300px;
    height: 300px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 50%;
    animation: float 8s ease-in-out infinite reverse;
}

.illustration-content {
    position: relative;
    z-index: 1;
    text-align: center;
}

.illustration-title {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.3;
    animation: slideInDown 0.6s ease-out 0.2s both;
}

.illustration-subtitle {
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 20px;
    opacity: 0.95;
    animation: fadeInUp 0.6s ease-out 0.3s both;
}

.illustration-link {
    animation: fadeInUp 0.6s ease-out 0.4s both;
}

.illustration-link a {
    color: var(--white);
    font-weight: 600;
    text-decoration: underline;
    transition: all 0.3s ease;
}

.illustration-link a:hover {
    text-decoration: none;
    opacity: 0.8;
}

.illustration-image {
    background-image: url('/image/ilust-market.png');
    background-repeat: no-repeat;
    background-size: contain;
    background-position: center;
    height: 400px;
    margin-top: 40px;
    animation: slideInUp 0.6s ease-out 0.5s both;
}

/* ===== FORM SIDE ===== */
.identity-form-wrapper {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 60px 35px;  /* Cambié de 60px 40px a 60px 35px */
}

.identity-form-container {
    width: 100%;
    max-width: 400px;
    animation: slideInRight 0.6s ease-out;
}

.identity-header {
    margin-bottom: 30px;
}

.identity-logo {
    height: 70px;
    width: auto;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.1));
    animation: slideInDown 0.6s ease-out 0.1s both;
}

.identity-form-title {
    font-size: 1.5rem;
    color: var(--text-dark);
    font-weight: 600;
    margin-bottom: 30px;
    animation: slideInDown 0.6s ease-out 0.2s both;
}

.identity-form-title i {
    margin-right: 10px;
    color: var(--primary-blue);
}

/* ===== FORM GROUPS ===== */
.identity-form-group {
    animation: fadeInUp 0.6s ease-out forwards;
    opacity: 0;
}

.identity-form-group:nth-child(1) { animation-delay: 0.3s; }
.identity-form-group:nth-child(2) { animation-delay: 0.4s; }
.identity-form-group:nth-child(3) { animation-delay: 0.5s; }

.form-label {
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.95rem;
}

.form-label i {
    color: var(--primary-blue);
    font-size: 1.1rem;
}

.form-control {
    border: 1px solid var(--border-light);
    border-radius: 8px;
    padding: 12px 15px;
    font-size: 0.95rem;
    color: var(--text-dark);
    transition: all 0.3s ease;
    font-family: "Open Sans", sans-serif;
    background-color: var(--white);
}

.form-control:focus {
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 0.2rem rgba(36, 135, 206, 0.25);
    color: var(--text-dark);
    background-color: var(--white);
}

.form-control.is-invalid {
    border-color: var(--danger-color);
}

.form-control.is-invalid:focus {
    border-color: var(--danger-color);
    box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25);
}

.form-control::placeholder {
    color: #aaaaaa;
}

.form-check {
    animation: fadeInUp 0.6s ease-out 0.5s both;
}

.form-check-input {
    width: 1.25em;
    height: 1.25em;
    margin-top: 0.3em;
    border: 1px solid var(--border-light);
    border-radius: 4px;
    transition: all 0.3s ease;
    background-color: var(--white);
}

.form-check-input:checked {
    background-color: var(--primary-blue);
    border-color: var(--primary-blue);
}

.form-check-input:focus {
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 0.2rem rgba(36, 135, 206, 0.25);
}

.form-check-label {
    margin-bottom: 0;
    color: var(--text-dark);
    font-size: 0.95rem;
    margin-left: 8px;
    user-select: none;
}

/* ===== BUTTONS ===== */
.btn-primary {
    background-color: var(--primary-blue);
    border-color: var(--primary-blue);
    font-weight: 600;
    transition: all 0.3s ease;
    animation: fadeInUp 0.6s ease-out 0.6s both;
}

.btn-primary:hover {
    background-color: var(--primary-blue-hover);
    border-color: var(--primary-blue-hover);
    transform: translateY(-2px);
    box-shadow: 0 8px 15px rgba(36, 135, 206, 0.3);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-primary i {
    margin-right: 8px;
}

.btn-lg {
    padding: 12px 24px;
    font-size: 1rem;
}

/* ===== ALERTS & VALIDATION ===== */
.alert {
    border: none;
    border-radius: 8px;
    animation: slideInDown 0.4s ease-out;
}

.alert-danger {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.alert-dismissible .btn-close {
    padding: 0.5rem;
    color: #721c24;
}

.alert-dismissible .btn-close:hover {
    opacity: 0.75;
}

.invalid-feedback {
    display: block;
    color: var(--danger-color);
    font-size: 0.85rem;
    margin-top: 4px;
    animation: fadeInUp 0.3s ease-out;
}

/* ===== LINKS ===== */
.link-secondary {
    color: var(--text-light);
    transition: all 0.3s ease;
    animation: fadeInUp 0.6s ease-out 0.7s both;
}

.link-secondary:hover {
    color: var(--primary-blue);
    text-decoration: underline;
}

.link-light {
    color: var(--white);
    font-weight: 600;
    text-decoration: underline;
    transition: all 0.3s ease;
}

.link-light:hover {
    text-decoration: none;
    opacity: 0.8;
}

/* ===== FOOTER ===== */
.identity-footer {
    animation: fadeIn 0.6s ease-out 0.8s both;
}

.identity-footer p {
    margin: 0;
    color: var(--text-light);
}

/* ===== ANIMATIONS ===== */
@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-20px);
    }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
    .identity-wrapper {
        grid-template-columns: 1fr;
    }

    .identity-illustration {
        display: none;
    }
}

@media (max-width: 768px) {
    .identity-container {
        padding: 15px;
    }

    .identity-wrapper {
        border-radius: 8px;
        box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    }

    .identity-form-wrapper {
        padding: 40px 30px;
    }

    .identity-form-container {
        max-width: 100%;
    }

    .identity-form-title {
        font-size: 1.2rem;
        margin-bottom: 25px;
    }

    .identity-logo {
        height: 50px;
    }

    .form-control {
        font-size: 16px;
        padding: 10px 12px;
    }

    .form-control-lg {
        padding: 10px 12px;
    }

    .btn-primary {
        padding: 10px 15px;
        font-size: 0.9rem;
    }
}

@media (max-width: 576px) {
    .identity-container {
        min-height: auto;
        padding: 10px;
    }

    .identity-wrapper {
        border-radius: 6px;
    }

    .identity-form-wrapper {
        padding: 30px 20px;
    }

    .identity-form-container {
        max-width: 100%;
    }

    .identity-header {
        margin-bottom: 20px;
    }

    .identity-form-title {
        font-size: 1.1rem;
        margin-bottom: 20px;
    }

    .identity-logo {
        height: 40px;
    }

    .form-label {
        font-size: 0.9rem;
        margin-bottom: 6px;
    }

    .form-control {
        font-size: 16px;
    }

    .btn-primary {
        padding: 8px 12px;
        font-size: 0.85rem;
    }

    .identity-footer {
        margin-top: 30px;
        padding-top: 20px;
    }

    .identity-footer p {
        font-size: 0.8rem;
    }
}