﻿@import url("https://fonts.googleapis.com/css?family=Raleway:400");

* {
    box-sizing: border-box;
}

@property --angle {
    syntax: '<angle>';
    initial-value: 90deg;
    inherits: true;
}

@property --gradX {
    syntax: '<percentage>';
    initial-value: 50%;
    inherits: true;
}

@property --gradY {
    syntax: '<percentage>';
    initial-value: 0%;
    inherits: true;
}



p {
    margin: 0;
}

:root {
    --d: 2500ms;
    --angle: 90deg;
    --gradX: 100%;
    --gradY: 50%;
    --c1: rgba(168, 139, 255, 1);
    --c2: rgba(168, 239, 255, 0.3);
}

.wrapper {
    min-width: min(40rem, 100%);
}

.box {
    font-size: 16px;
    margin: max(1rem, 3vw);
    border: 0.35rem solid;
    padding: 3vw;
    border-image: conic-gradient(from var(--angle), var(--c2), var(--c1) 0.1turn, var(--c1) 0.15turn, var(--c2) 0.25turn) 30;
    animation: borderRotate var(--d) linear infinite forwards;
    border-radius: 1rem;
}

    .box:nth-child(2) {
        border-image: radial-gradient(ellipse at var(--gradX) var(--gradY), var(--c1), var(--c1) 10%, var(--c2) 40%) 30;
        animation: borderRadial var(--d) linear infinite forwards;
    }

@keyframes borderRotate {
    100% {
        --angle: 420deg;
    }
}

@keyframes borderRadial {
    20% {
        --gradX: 100%;
        --gradY: 50%;
    }

    40% {
        --gradX: 100%;
        --gradY: 100%;
    }

    60% {
        --gradX: 50%;
        --gradY: 100%;
    }

    80% {
        --gradX: 0%;
        --gradY: 50%;
    }

    100% {
        --gradX: 50%;
        --gradY: 0%;
    }
}
body {
    margin: 0;
    height: 100vh;
    position: relative;
    font-family: 'Raleway', sans-serif;
    background: #000;
}
#background {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  background: url('../img/net.jpg') no-repeat center center fixed;
  background-size: cover;
  filter: none;
  opacity: 1;
  transition: opacity 1.5s ease;
  z-index: -2;
}
#background-blur {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: url('../img/net.jpg') no-repeat center center fixed;
    background-size: cover;
    filter: blur(10px) brightness(0.8); /* Aquí controlas el blur y el brillo */
    opacity: 1;
    transition: opacity 1.5s ease;
    animation: fadeInUp 1.5s ease forwards;
    animation-delay: 0s;
}
.fade-in-up {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.8s ease forwards;
    animation-delay: 0.3s;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
#logo-bg {
    position: absolute;
    width: 100%;
    height: 100%;
    overflow: hidden;
    top: 0;
    left: 0;
    z-index: 0;
    transition: opacity 1.5s ease;
}

.circle {
    position: absolute;
    border-radius: 50%;
    transition: opacity 2s ease-in-out;
    will-change: transform, opacity;
    animation: floatLogo 20s ease-in-out infinite;
    z-index: 0;
}

@keyframes floatLogo {
    0% {
        transform: translate(0, 0);
    }

    50% {
        transform: translate(20px, -30px);
    }

    100% {
        transform: translate(0, 0);
    }
}


.form-group {
    position: relative;
    margin-bottom: 1rem;
}

    .form-group input {
        width: 100%;
        padding: 0.75rem 0.75rem 0.75rem 2.5rem;
        background: transparent;
        border: none;
        border-bottom: 2px solid rgba(255,255,255,0.5);
        color: #fff;
        font-size: 1rem;
        border-radius: 2rem;
    }

        .form-group input:focus {
            border-bottom-color: #fff;
            outline: none;
            background: rgba(255,255,255,0.1);
        }

    .form-group .fa-icon {
        position: absolute;
        top: 50%;
        left: 0.8rem;
        transform: translateY(-50%);
        color: #fff;
        font-size: 1.2rem;
    }

.btn-login {
    margin-top: 1.5rem;
    padding: 0.8rem 2rem; /* más espacio interno */
    width: 60%; /* más largo, pero no ocupa todo el ancho */
    max-width: 300px; /* evita que se haga enorme en pantallas grandes */
    border-radius: 2rem;
    border: none;
    background: #009ca6; /* aqua más suave y sobrio */
    color: #fff;
    font-size: 1.05rem;
    transition: all 0.3s ease;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

    .btn-login:hover {
        box-shadow: 0 0 8px 3px rgba(0, 255, 255, 0.6); /* brillo aqua suave */
        background-color: #007b8a !important; /* aqua oscuro para hover */
        color: #fff;
    }
.input-icon-wrapper {
    position: relative;
}

    .input-icon-wrapper i {
        position: absolute;
        top: 50%;
        left: 15px;
        transform: translateY(-50%);
        color: #222 !important;
        font-size: 1.2rem;
        pointer-events: none;
    }

.custom-input {
    padding-left: 2.5rem !important; /* espacio para el ícono */
    color: #222;
    border: none;
    border-radius: 30px;
    color: #fff;
    font-size: 1rem;
}

    .custom-input::placeholder {
        color: #555 !important;
    }

    .custom-input:focus {
        outline: none;
        background: rgba(255, 255, 255, 0.2);
        border-bottom: 2px solid #fff;
        box-shadow: none;
    }
.login-phrase {
    color: #000; /* gris claro */
    font-size: 1.1rem;
    font-weight: 400;
    max-width: 250px;
    margin: 0 auto;
    text-align: center;
    line-height: 1.3;
    text-shadow: 0 0 3px rgba(0,0,0,0.5);
}
.wrapper {
    animation: fadeInUp 1.5s ease forwards;
    animation-delay: 1.8s;
    opacity: 0;
}
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}