@font-face {
    font-family: 'Designer';
    src: url(../fonts/Designer.otf);
}
@font-face {
    font-family: 'tommy';
    src: url(../fonts/MADE\ TOMMY\ ExtraBold_PERSONAL\ USE.otf);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

main {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 40px 20px;
    background: linear-gradient(135deg, rgba(125, 185, 245, 0.9), rgba(27, 36, 46, 0.9));
}

.logo-container {
    display: flex;
    align-items: center;
    justify-content: center;
}

form img {
    width: 20%;
}

.signup-container {
    color: white;
    background-color: rgb(32, 70, 114);
    width: 100%;
    max-width: 60%;
    min-height: 780px;
    display: flex;
    margin: auto;
    align-items: center;
    justify-content: center;
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    transition: all 0.5s ease;
}

.signup-container > * {
    width: 100%;
}

.signup-container:hover {
    background: linear-gradient(135deg, rgba(139, 177, 216, 0.9), rgba(52, 73, 94, 0.9));
    transition: ease-in 0.5s;
    transform: scale(1.02);
}

.signup-container h1 {
    font-size: 36px;
    font-family: "tommy";
    text-align: center;
    margin-bottom: 10px;
}

.signup-container .signup {
    position: relative;
    width: 100%;
    height: 50px;
    margin: 20px 0px 0px 0px;
}

.signup input {
    width: 100%;
    height: 100%;
    background: transparent;
    color: white;
    border: none;
    outline: none;
    border: 2px solid;
    border-radius: 40px;
    font-size: 16px;
    padding: 20px 45px 20px 20px;
    box-shadow: 0px 0px 15px;
    font-weight: 700;
    transition: border-color 0.3s ease;
}

.signup input:focus {
    border-color: #7dd5f5;
    box-shadow: 0px 0px 20px rgba(125, 213, 245, 0.5);
}

.signup input.invalid {
    border-color: #ff4444;
    box-shadow: 0px 0px 15px rgba(255, 68, 68, 0.3);
}

.signup input::placeholder {
    color: white;
}

.signup i {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 20px;
}

.terms-check {
    display: flex;
    align-items: center;
    font-size: 14px;
    margin: 15px 0 10px;
    line-height: 1.4;
}

.terms-check label {
    display: flex;
    align-items: center;
    cursor: pointer;
}

.terms-check label input {
    accent-color: white;
    margin-right: 8px;
    transform: scale(1.2);
}

.terms-check a {
    color: #7dd5f5;
    text-decoration: none;
    font-weight: 600;
}

.terms-check a:hover {
    text-decoration: underline;
    color: #a8e6ff;
}

.signup-container .btn {
    width: 100%;
    height: 50px;
    background: #ffffff;
    border: none;
    outline: none;
    border-radius: 40px;
    box-shadow: 0 0 10px rgba(0, 0, 0, .1);
    cursor: pointer;
    font-size: 16px;
    color: #000000;
    font-weight: 600;
    margin-top: 20px;
    transition: all 0.3s ease;
}

.signup-container .btn:hover {
    background: #f0f0f0;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.login-link {
    color: #fff;
    margin: 20px 0 15px;
    text-align: center;
    font-size: 14px;
}

.login-link a {
    color: #7dd5f5;
    text-decoration: none;
    font-weight: 600;
}

.login-link a:hover {
    text-decoration: underline;
    color: #a8e6ff;
}

.error-message {
    display: none;
    color: #ff4444;
    background: rgba(255, 68, 68, 0.1);
    padding: 12px;
    border-radius: 8px;
    margin-top: 10px;
    text-align: center;
    border: 1px solid rgba(255, 68, 68, 0.3);
    font-size: 14px;
}

.success-message {
    display: none;
    color: #4CAF50;
    background: rgba(76, 175, 80, 0.1);
    padding: 12px;
    border-radius: 8px;
    margin-top: 10px;
    text-align: center;
    border: 1px solid rgba(76, 175, 80, 0.3);
    font-size: 14px;
}

.btn {
    position: relative;
    overflow: hidden;
}

.btn.loading {
    pointer-events: none;
    opacity: 0.8;
}

.btn.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 20px;
    height: 20px;
    border: 2px solid transparent;
    border-top-color: #333;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

.card-info {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
    width: 100%;
    max-width: 1200px;
    margin-top: 20px;
}

.card {
    flex: 1;
    min-width: 280px;
    max-width: 350px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 25px;
    border-radius: 15px;
    margin-bottom: 30px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.card h3 {
    font-family: "Designer";
    font-size: 15px;
    color: rgb(68, 160, 236);
    position: relative;
    margin: 10px 0;
}

.card h3::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    transition: width 0.3s ease;
    background: linear-gradient(90deg, #3498db, #2980b9);
}

.card h3:hover {
    color: rgba(128, 200, 248, 0.801);
}

.card h3:hover::after {
    width: 75%;
}

.card-info .card:nth-of-type(3) h3:hover::after {
    width: 60%;
}

.card p {
    font-family: "Roboto";
    font-size: 16px;
    color: white;
}

.card:hover {
    transform: translateY(-10px);
    background: rgba(255, 255, 255, 0.2);
    box-shadow: 
        0 15px 35px rgba(0, 0, 0, 0.2),
        0 0 15px rgba(255, 255, 255, 0.1);
}

.card i {
    color: rgb(111, 111, 241);
    font-size: 34px;
}

/* Animación para validación de contraseñas */
.signup input.match {
    border-color: #4CAF50;
    box-shadow: 0px 0px 15px rgba(76, 175, 80, 0.3);
}

/* Indicador de fuerza de contraseña */
.password-strength {
    margin-top: 5px;
    font-size: 12px;
    text-align: right;
    opacity: 0.8;
}

.strength-weak { color: #ff4444; }
.strength-medium { color: #ffaa00; }
.strength-strong { color: #4CAF50; }

@media (max-width: 3000px) {
    main {
        padding: 20px;
        gap: 40px;
    }

    .signup-container {
        margin-top: 200px;
        min-height: 750px;
        padding: 30px 20px;
    }
}

@media screen and (max-width: 768px) {
    .signup-container {
        max-width: 90%;
        min-height: 700px;
        padding: 25px 20px;
    }
    
    .logo-container img {
        width: 25%;
    }
    
    .signup-container h1 {
        font-size: 28px;
    }
    
    .card-info {
        flex-direction: column;
        align-items: center;
    }
    
    .card {
        min-width: 100%;
        max-width: 400px;
    }
}

@media screen and (max-width: 600px) {
    .signup-container {
        max-width: 95%;
        padding: 20px 15px;
    }
    
    .logo-container img {
        width: 30%;
    }
    
    .signup-container h1 {
        font-size: 24px;
    }
    
    .signup input {
        font-size: 14px;
        padding: 15px 40px 15px 15px;
    }
    
    .terms-check {
        font-size: 13px;
    }
}