﻿:root {
    --primary-green: #1e8449;
    --secondary-green: #28a745;
    --dark-bg: #2c3e50;
    --icon-grey: #aaa;
}

body {
    font-family: 'Poppins', sans-serif;
    display: flex;
    align-items: center;
    flex-direction:column;
    justify-content: center;
    height: 100vh;
    margin: 0;
    background: linear-gradient(-45deg, var(--primary-green), var(--secondary-green), var(--dark-bg), #23a6d5);
    background-size: 400% 400%;
    animation: gradientBG 15s ease infinite;
}

@keyframes gradientBG {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

.login-wrapper {
    position: relative;
    width: 420px;
    animation: fadeIn 1s ease-out forwards;
    margin-left: auto;
    margin-right: auto;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

.hexagon-container {
    background-color: rgba(255, 255, 255, 0.98);
    padding: 60px 60px 30px 60px;
    clip-path: url(#hexagon-clip-correct);
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
    text-align: center;
    position: relative;
}

.profile-avatar {
    position: absolute;
    top: -40px;
    left: 50%;
    transform: translateX(-50%); 
    z-index: 10; 

    width: 80px;
    height: 80px;
    background-color: var(--primary-green);
    clip-path: url(#hexagon-clip-correct);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 5px 15px rgba(30, 132, 73, 0.4);
}

    .profile-avatar .bi-person-fill {
        font-size: 2.5rem;
        color: white;
    }

h2 {
    color: var(--dark-bg);
    font-weight: 600;
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
}

.form-field-container {
    position: relative;
    margin-bottom: 0.75rem;
    min-width: 60px;
    min-height: 60px;
}

.input-group {
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-control {
    border: none;
    border-bottom: 2px solid #ccc;
    border-radius: 0;
    background-color: transparent;
    padding-right: 40px; 
    height: 45px;
    transition: border-bottom-color 0.3s ease, box-shadow 0.3s ease;
}

    .form-control:focus {
        box-shadow: none;
        border-color: transparent; 
    }

.input-group-text {
    background-color: transparent;
    border: none;
    border-bottom: 2px solid #ccc;
    border-radius: 0;
    color: var(--icon-grey);
    transition: border-bottom-color 0.3s ease, color 0.3s ease;
}

    .input-group-text i {
        transition: transform 0.3s ease;
    }

.input-group:focus-within {
    box-shadow: 0 2px 4px -2px var(--primary-green);
}

    .input-group:focus-within .form-control,
    .input-group:focus-within .input-group-text {
        border-bottom-color: var(--primary-green);
    }

        .input-group:focus-within .input-group-text i {
            color: var(--primary-green);
            transform: scale(1.1);
        }

.password-toggle-icon {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    right: 10px;
    color: var(--icon-grey);
    z-index: 10;
    font-size: 1.1rem;
    cursor: pointer;
    transition: color 0.3s ease;
}

.input-group:focus-within .password-toggle-icon {
    color: var(--primary-green);
}

.form-check {
    text-align: left;
    margin-top: 0;
    margin-bottom: 15px;
    color: #555;
    font-size: 0.85em;
}

.form-check-input:checked {
    background-color: var(--primary-green);
    border-color: var(--primary-green);
}

.btn-login {
    background-color: var(--primary-green);
    color: white;
    border: none;
    padding: 10px;
    width: 50%;
    border-radius: 25px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    margin-top: 0.5rem;
}

    .btn-login:hover {
        background-color: var(--secondary-green);
        transform: translateY(-3px);
        box-shadow: 0 7px 20px rgba(40, 167, 69, 0.3);
    }

.text-danger {
    position: absolute;
    bottom: -5px;
    left: 0;
    font-size: 0.8em;
    width: 100%;
    text-align: left;
}



/*
==============================================
  ESTILOS PARA REDES DE CONTACTO
==============================================
*/

.contact-links-container {
    margin-top: 25px;
    padding: 12px 25px;
    background-color: rgba(255, 255, 255, 0.9);
    border-radius: 50px; 
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px; 
    animation: fadeInUp 0.8s ease-out 0.5s forwards;
    opacity: 0;
    margin-left: auto;
    margin-right: auto;
}

    .contact-links-container a i {
        font-size: 1.6rem; 
        color: #555; 
        transition: color 0.3s ease, transform 0.3s ease;
    }

    .contact-links-container a:hover i {
        transform: scale(1.2) translateY(-2px); 
    }

    .contact-links-container a:hover .bi-facebook {
        color: #1877F2;
    }

    .contact-links-container a:hover .bi-twitter-x {
        color: #000000;
    }

    .contact-links-container a:hover .bi-instagram {
        color: #E4405F;
    }

    .contact-links-container a:hover .bi-whatsapp {
        color: #25D366;
    }


@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}