﻿@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

body {
    width: 100%;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    overflow: hidden;
    background-color: #0a1929;
    background-image:
        radial-gradient(ellipse at top, #16314f 0%, transparent 60%),
        radial-gradient(ellipse at bottom, #0d2138 0%, transparent 60%),
        linear-gradient(135deg, #0a1929 0%, #0f2640 100%);
}

/* Textura de carbono superpuesta */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        linear-gradient(45deg, rgba(255,255,255,0.025) 25%, transparent 25%, transparent 75%, rgba(255,255,255,0.025) 75%),
        linear-gradient(45deg, rgba(255,255,255,0.025) 25%, transparent 25%, transparent 75%, rgba(255,255,255,0.025) 75%),
        linear-gradient(0deg, rgba(0,0,0,0.25) 50%, transparent 50%);
    background-size: 6px 6px, 6px 6px, 3px 3px;
    background-position: 0 0, 3px 3px, 0 0;
    pointer-events: none;
    z-index: 0;
}

/* Capa de nubes animadas */
.clouds-layer {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    pointer-events: none;
    z-index: 1;
}

.cloud {
    position: absolute;
    background: #ffffff;
    border-radius: 50%;
    filter: blur(8px);
    opacity: 0.55;
    box-shadow: 0 0 40px rgba(255, 255, 255, 0.35);
}

.cloud::before,
.cloud::after {
    content: '';
    position: absolute;
    background: #ffffff;
    border-radius: 50%;
}

.cloud-1 {
    width: 300px;
    height: 70px;
    top: 12%;
    left: -350px;
    animation: drift-cloud 55s linear infinite;
    opacity: 0.7;
}
.cloud-1::before {
    width: 130px; height: 130px; top: -60px; left: 50px;
}
.cloud-1::after {
    width: 95px; height: 95px; top: -35px; left: 175px;
}

.cloud-2 {
    width: 220px;
    height: 55px;
    top: 42%;
    left: -250px;
    animation: drift-cloud 75s linear infinite;
    animation-delay: -20s;
    opacity: 0.5;
}
.cloud-2::before {
    width: 105px; height: 105px; top: -45px; left: 30px;
}
.cloud-2::after {
    width: 75px; height: 75px; top: -28px; left: 135px;
}

.cloud-3 {
    width: 380px;
    height: 90px;
    top: 68%;
    left: -420px;
    animation: drift-cloud 90s linear infinite;
    animation-delay: -40s;
    opacity: 0.6;
}
.cloud-3::before {
    width: 160px; height: 160px; top: -70px; left: 70px;
}
.cloud-3::after {
    width: 115px; height: 115px; top: -45px; left: 225px;
}

.cloud-4 {
    width: 260px;
    height: 65px;
    top: 23%;
    left: -300px;
    animation: drift-cloud 65s linear infinite;
    animation-delay: -10s;
    opacity: 0.45;
}
.cloud-4::before {
    width: 115px; height: 115px; top: -50px; left: 40px;
}
.cloud-4::after {
    width: 85px; height: 85px; top: -32px; left: 155px;
}

.cloud-5 {
    width: 200px;
    height: 50px;
    top: 82%;
    left: -230px;
    animation: drift-cloud 80s linear infinite;
    animation-delay: -55s;
    opacity: 0.55;
}
.cloud-5::before {
    width: 95px; height: 95px; top: -40px; left: 25px;
}
.cloud-5::after {
    width: 70px; height: 70px; top: -25px; left: 120px;
}

@keyframes drift-cloud {
    0%   { transform: translateX(0); }
    100% { transform: translateX(calc(100vw + 450px)); }
}

#content_login {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 400px;
    padding: 40px;
    background: rgba(15, 38, 64, 0.55);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid rgba(120, 170, 220, 0.25);
    border-radius: 8px;
    box-shadow: 0 15px 45px rgba(0, 0, 0, 0.45);
    display: flex;
    flex-direction: column;
    align-items: center;
}

#content_login img.logo-img {
    max-width: 75%;
    height: auto;
    margin-bottom: 20px;
    padding: 14px 22px;
    background: rgba(255, 255, 255, 0.92);
    border-radius: 6px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35), inset 0 0 0 1px rgba(255, 255, 255, 0.4);
}

#content_login h1 {
    color: #fff;
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 30px;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.login_form {
    width: 100%;
}

.input-group {
    position: relative;
    margin-bottom: 18px;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(120, 170, 220, 0.3);
    border-radius: 4px;
    display: flex;
    align-items: center;
    padding: 4px 14px;
    transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.input-group:focus-within {
    border-color: #2196f3;
    box-shadow: 0 0 0 3px rgba(33, 150, 243, 0.25);
}

.input-group img {
    width: 20px;
    height: 20px;
    margin-right: 10px;
    opacity: 0.7;
}

.input-group input {
    width: 100%;
    border: none;
    outline: none;
    background: transparent;
    font-size: 1rem;
    color: #333;
    padding: 10px 5px;
}

.input-group input::placeholder {
    color: #666;
}

.loginform-action {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 20px;
}

.btn-custom {
    display: block;
    width: 100%;
    padding: 12px;
    text-align: center;
    text-decoration: none;
    border-radius: 4px;
    font-weight: 600;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    border: none;
}

#btn_entrar {
    background: linear-gradient(45deg, #2196f3, #00bcd4);
    color: #fff;
}

#btn_entrar:hover {
    background: linear-gradient(45deg, #1976d2, #0097a7);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(33, 150, 243, 0.4);
}

#btn_entrar_google {
    background: #fff;
    color: #333;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

#btn_entrar_google:hover {
    background: #f1f1f1;
    transform: translateY(-2px);
}

.footer-link {
    margin-top: 30px;
    text-align: center;
}

.footer-link a {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.8rem;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-link a:hover {
    color: #fff;
    text-decoration: underline;
}

/* Responsive adjustments */
@media (max-width: 480px) {
    #content_login {
        width: 90%;
        padding: 30px 20px;
    }

    #content_login h1 {
        font-size: 1.2rem;
    }
}

/* --- Change Profile Modal Styles --- */

/* Impromptu Box Refinements */
div.jqibox {
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5) !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    background: rgba(255, 255, 255, 0.95) !important;
    border-radius: 16px !important;
    backdrop-filter: blur(10px);
    padding: 0 !important;
    overflow: hidden;
    color: #333;
    max-width: 500px !important;
    width: 90% !important;
}

div.jqifade {
    background-color: rgba(0, 0, 0, 0.6) !important;
    backdrop-filter: blur(5px);
}

div.jqi .jqibuttons {
    background: #f8f9fa;
    border-top: 1px solid #eee;
    padding: 15px 20px !important;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

div.jqi .jqibuttons button {
    padding: 8px 20px;
    border-radius: 6px;
    border: none;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    font-family: 'Poppins', sans-serif;
}

div.jqi .jqibuttons button[value="SI"] {
    background: #2196f3;
    color: white;
}

div.jqi .jqibuttons button[value="SI"]:hover {
    background: #1976d2;
}

div.jqi .jqibuttons button[value="NO"] {
    background: #e0e0e0;
    color: #333;
}

div.jqi .jqibuttons button[value="NO"]:hover {
    background: #d5d5d5;
}

/* Modal Content Styles */
.profile-change-modal {
    padding: 20px;
}

.profile-header h1 {
    font-size: 1.5rem;
    color: #2c3e50;
    margin-bottom: 20px;
    text-align: center;
    border-bottom: 2px solid #f0f0f0;
    padding-bottom: 10px;
}

.profile-info {
    background-color: #e3f2fd;
    border-left: 4px solid #2196f3;
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 4px;
    font-size: 0.9rem;
    color: #0d47a1;
    line-height: 1.5;
}

.profile-form-content .profile-form-group {
    margin-bottom: 15px;
}

.profile-label {
    display: flex;
    align-items: center;
    font-weight: 500;
    margin-bottom: 8px;
    color: #555;
    font-size: 0.95rem;
}

.profile-label svg {
    margin-right: 8px;
    color: #2196f3;
}

.profile-input {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s, box-shadow 0.3s;
    outline: none;
    background: #fff;
}

.profile-input:focus {
    border-color: #2196f3;
    box-shadow: 0 0 0 3px rgba(33, 150, 243, 0.1);
}

.profile-input:disabled,
.profile-input[readonly] {
    background-color: #f9f9f9;
    color: #777;
    cursor: not-allowed;
}

select.profile-input {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23333' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
}

/* Error message styling */
#mensaje {
    margin-bottom: 15px;
    font-size: 0.9rem;
    text-align: center;
}