html,
body {
    height: 100%;
}

body {
    margin: 0;
    padding: 0;
    background: url(images/FondoLogin.jpg) no-repeat 0px 0px;
    min-height: 100vh;
    background-size: cover;
}

#login-page {
    width: 500px;
}

#register-page {
    width: 800px;
}

#registerresult-page {
    width: 650px;
}


.login_logo {
    align-content: center;
    text-align: center;
}

.login-form {
    max-width: 100%;
    margin: 0 auto;
    padding: 2em;
    border-radius: 10px;
    box-sizing: border-box;
}

/* ===== ESTILOS ESPECÍFICOS PARA LA CARD DE LOGIN ===== */
#login-page {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 20px;
}

#login-page .card-panel {
    padding: 20px;
    margin: 0;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    background: white;
    width: 100%;
    max-width: 400px;
}

#login-page .login_logo {
    margin-bottom: 20px;
}

#login-page .login_logo img {
    max-width: 200px;
    height: auto;
}

#login-page .row {
    margin-bottom: 15px;
}

#login-page .input-field {
    margin-bottom: 10px;
}

#login-page .btn {
    margin-top: 10px;
    height: 45px;
    line-height: 45px;
    font-size: 16px;
    font-weight: 500;
}

#login-page .secondary-content {
    color: var(--primary-color);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s ease;
}

#login-page .secondary-content:hover {
    color: var(--hover-primary);
    text-decoration: underline;
}

.register-form {
    max-width: 100%;
    margin: 0 auto;
    padding: 1em;
    border-radius: 10px;
    box-sizing: border-box;
}

.registerresult-form {
    max-width: 100%;
    margin: 0 auto;
    padding: 1em;
    border-radius: 10px;
    box-sizing: border-box;
}

/* ===== ESTILOS DEL STEPPER ===== */

/* Progressbar */
#progressbar {
    margin-bottom: 30px;
    overflow: hidden;
    counter-reset: step;
}

#progressbar li {
    list-style-type: none;
    color: var(--primary-color);
    text-transform: uppercase;
    font-size: 12px;
    width: 50%;
    float: left;
    position: relative;
}

#progressbar li:before {
    content: counter(step);
    counter-increment: step;
    width: 40px;
    line-height: 40px;
    display: block;
    font-size: 15px;
    color: white;
    background: var(--primary-color);
    border-radius: 50%;
    margin: 0 auto 5px auto;
}

#progressbar li:after {
    content: '';
    width: 100%;
    height: 2px;
    background: #e0e0e0;
    position: absolute;
    left: -50%;
    top: 18px;
    z-index: -1;
}

#progressbar li:first-child:after {
    content: none;
}

#progressbar li.active:before, #progressbar li.active:after {
    background: var(--primary-color);
    color: white;
}

/* Formulario principal */
#msform {
    width: 800px;
    margin: 50px auto;
    text-align: center;
    position: relative;
}

#msform fieldset {
    background: white;
    border: 0 none;
    border-radius: 8px;
    box-shadow: 0 0 15px 1px rgba(0, 0, 0, 0.1);
    padding: 30px;
    box-sizing: border-box;
    width: 80%;
    margin: 0 10%;
    position: relative;
}

#msform fieldset:not(:first-of-type) {
    display: none;
}

/* Títulos */
.fs-title {
    font-size: 20px;
    text-transform: uppercase;
    color: var(--primary-color);
    margin-bottom: 20px;
    font-weight: bold;
}

.fs-subtitle {
    font-weight: normal;
    font-size: 14px;
    color: #666;
    margin-bottom: 30px;
}

/* Filas del formulario */
.form-row {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

.form__group {
    flex: 1;
    position: relative;
}

/* Campos de entrada */
.form__field {
    width: 100%;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 12px 15px;
    font-size: 14px;
    transition: border-color 0.3s ease;
    background: white;
}

.form__field:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(120, 0, 198, 0.1);
}

.form__field.invalid {
    border-color: #f44336;
}

/* Labels */
.form__label {
    position: absolute;
    top: -8px;
    left: 10px;
    background: white;
    padding: 0 5px;
    font-size: 12px;
    color: #666;
}

/* Botones */
.action-button {
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 4px;
    padding: 12px 30px;
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
    margin: 10px 5px;
    transition: background-color 0.3s ease;
}

.action-button:hover {
    background: var(--hover-primary);
}

.action-button:disabled {
    background: #ccc;
    cursor: not-allowed;
}

/* Información de prueba gratuita */
.trial-info {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 30px;
    text-align: center;
}

.trial-info h3 {
    margin: 0 0 10px 0;
    font-size: 18px;
}

.trial-info p {
    margin: 0;
    font-size: 14px;
    opacity: 0.9;
}

/* Preview de URL */
.url-preview {
    background: #f5f5f5;
    padding: 15px;
    border-radius: 4px;
    margin-bottom: 20px;
    text-align: left;
}

.url-preview p {
    margin: 0 0 5px 0;
    font-size: 12px;
    color: #666;
}

.url-preview h5 {
    margin: 0;
    color: var(--primary-color);
    font-weight: bold;
}

/* Responsive */
@media (max-width: 768px) {
    #msform {
        width: 100%;
        margin: 20px auto;
    }

    #msform fieldset {
        width: 90%;
        margin: 0 5%;
        padding: 20px;
    }

    .form-row {
        flex-direction: column;
        gap: 15px;
    }
}

/* ===== ESTILOS DEL FOOTER ===== */
footer {
    background: rgba(0, 0, 0, 0.8);
    color: white;
    text-align: center;
    padding: 15px 0;
    position: fixed;
    bottom: 0;
    width: 100%;
    left: 0;
}

footer p {
    margin: 0;
    font-size: 14px;
}

footer p a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

footer p a:hover {
    color: var(--hover-primary);
    text-decoration: underline;
}