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

body {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background: url('sfondo.jpg') no-repeat center center fixed;
    background-size: cover;
    padding: 20px;
    position: relative;
}

body::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.25);
    z-index: 1;
}

.login-box {
    position: relative;
    width: 100%;
    max-width: 400px;
    padding: 40px 30px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.2);
    z-index: 10;
}

h2 {
    color: #ffffff;
    text-align: center;
    margin-bottom: 45px;
    font-weight: 500;
    letter-spacing: 2px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.input-group {
    position: relative;
    margin-bottom: 35px;
    width: 100%;
}

.input-group i {
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(255, 255, 255, 0.6);
    font-size: 18px;
    transition: 0.3s;
    z-index: 5;
}

.input-group input {
    width: 100%;
    padding: 12px 5px 12px 30px;
    font-size: 15px;
    color: #ffffff;
    background: transparent;
    border: none;
    border-bottom: 1.5px solid rgba(255, 255, 255, 0.4);
    outline: none;
    transition: 0.3s;
}

.input-group label {
    position: absolute;
    top: 50%;
    left: 35px;
    transform: translateY(-50%);
    color: rgba(255, 255, 255, 0.8);
    pointer-events: none;
    transition: 0.3s ease;
}

.input-group input:focus~label,
.input-group input:valid~label {
    top: -5px;
    left: 0;
    transform: translateY(0);
    font-size: 12px;
    color: #38bdf8;
}

.input-group input:focus~i,
.input-group input:valid~i {
    color: #38bdf8;
}

.input-group input:focus {
    border-bottom: 1.5px solid #38bdf8;
}

.login-btn {
    width: 100%;
    padding: 14px;
    background: #0ea5e9;
    border: none;
    border-radius: 8px;
    color: #ffffff;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    cursor: pointer;
    transition: 0.3s ease;
    margin-bottom: 20px;
}

.login-btn:hover {
    background: #0284c7;
    box-shadow: 0 10px 20px rgba(14, 165, 233, 0.3);
    transform: translateY(-1px);
}

.login-btn:active { transform: translateY(0); }

.login-btn:disabled {
    background: #475569;
    cursor: not-allowed;
}

.signup-link, .forgot-pass {
    text-align: center;
    color: #ffffff;
    font-size: 14px;
}

.link-wrapper {
    position: relative;
    padding: 12px 20px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    width: 100%; 
    margin: 15px auto 0;
    display: flex;
    justify-content: center;
    align-items: center;
    border: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 1;
    overflow: hidden;
}

.link-wrapper::before {
    content: '';
    position: absolute;
    width: 150%; height: 150%;
    background-image: conic-gradient(transparent, #38bdf8, #0ea5e9, transparent 30%);
    animation: rotate-led 3s linear infinite;
    z-index: -2;
}

.link-wrapper::after {
    content: '';
    position: absolute;
    inset: 3px;
    background: #1e293b;
    border-radius: 8px;
    z-index: -1;
}

@keyframes rotate-led {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.link-wrapper a {
    color: #38bdf8;
    text-decoration: none;
    font-weight: bold;
    margin-left: 5px;
    transition: 0.3s;
    text-shadow: 0 0 5px rgba(56, 189, 248, 0.5);
}

.link-wrapper a:hover {
    color: #7dd3fc;
    text-decoration: underline;
}

.register-row {
    display: flex;
    gap: 20px;
}

.register-row {
    display: flex;
    gap: 20px;
    width: 100%;
}

.register-row .input-group {
    flex: 1;
}

@media (max-width: 480px) {
    .register-row {
        flex-direction: column;
        gap: 0;
    }

.login-box {
        padding: 40px 20px; 
    }
}

.captcha-container {
    display: flex;
    justify-content: center;
    margin-bottom: 25px;
    width: 100%;
}

@media screen and (max-width: 480px) {
    .g-recaptcha {
        transform: scale(0.85);
        transform-origin: center;
    }
}