﻿
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Segoe UI', sans-serif;
}

body {
    background: url('/Img/fondo.jpeg') no-repeat center center fixed;
    background-size: cover;
}

.container {
    display: flex;
    height: 100vh;
    justify-content: center;
    align-items: center;
}

.login-box {
    width: 800px;
    height: 400px;
    display: flex;
    background-color: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 8px 16px rgba(0,0,0,0.2);
}

.left {
    background: url('/Img/fondo2.jpeg') no-repeat center center;
    background-size: cover;
    flex: 1;
    padding: 30px;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
}

.overlay {
    text-align: center;
    background-color: rgba(0, 0, 0, 0.4);
    padding: 20px;
    border-radius: 10px;
}

    .overlay h1 {
        font-size: 40px;
        margin-bottom: 10px;
    }

    .overlay p {
        margin: 10px 0;
    }

.btn {
    margin: 5px;
    padding: 10px 20px;
    border: none;
    border-radius: 20px;
    cursor: pointer;
    color: white;
    font-weight: bold;
}

.fb {
    background-color: #3b5998;
}

.tw {
    background-color: #1da1f2;
}

.right {
    flex: 1;
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

    .right h2 {
        margin-bottom: 20px;
    }

    .right input {
        width: 100%;
        padding: 12px;
        margin: 10px 0;
        border: none;
        border-bottom: 2px solid #333;
        outline: none;
    }

.submit {
    margin-top: 20px;
    padding: 10px;
    background-color: #2c3e50;
    color: white;
    border: none;
    border-radius: 20px;
    width: 100px;
    align-self: flex-end;
    cursor: pointer;
}

.signup {
    margin-top: 10px;
    font-size: 0.9em;
}

.password-wrapper {
    position: relative;
}

.toggle-password {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1em;
    color: #2c3e50;
}

/* Forzar Times New Roman en el login */
#loginBox,
#loginBox * {
    font-family: "Times New Roman", Times, serif !important;
}



/* ==== Efecto de borde eléctrico azul ==== */
.login-box {
  position: relative;
  border-radius: 22px; /* un poquito más redondeado */
  overflow: hidden;
  background: #fff;
  box-shadow: 0 0 35px rgba(0, 180, 255, 0.25);
  z-index: 0;
}

/* Borde animado tipo rayos azules */
.login-box::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 6px; /* un poquito más grueso */
  background: linear-gradient(
    120deg,
    #00eaff,
    #00aaff,
    #007bff,
    #00aaff,
    #00eaff
  );
  background-size: 300% 300%;
  animation: electricBlue 4s linear infinite;
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  z-index: 0;
}

/* Resplandor azul suave */
.login-box::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: 0 0 40px 8px rgba(0, 170, 255, 0.6);
  pointer-events: none;
  z-index: 0;
}

/* Animación tipo corriente azul */
@keyframes electricBlue {
  0% {
    background-position: 0% 50%;
    filter: hue-rotate(0deg) brightness(1.3);
  }
  50% {
    background-position: 100% 50%;
    filter: hue-rotate(45deg) brightness(1.6);
  }
  100% {
    background-position: 0% 50%;
    filter: hue-rotate(0deg) brightness(1.3);
  }
}



