body {
    margin: 0;
    padding: 0;
    min-height: 100vh;
    font-family: 'Segoe UI', Tango, Geneva, Verdana, sans-serif;
    background-image: url('https://container-news.com/wp-content/uploads/2023/03/photo.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    position: relative;
}

body::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: 1;
}

.login-container,
.register-container,
.password-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 2;
    padding: 20px;
}

.auth-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    padding: 40px;
    width: 100%;
    box-shadow: 0 25px 45px rgba(0, 0, 0, 0.2);
    animation: fadeInUp 0.8s ease-out;
    transition: all 0.3s ease;
}

.auth-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 35px 55px rgba(0, 0, 0, 0.3);
}

.login-card {
    max-width: 420px;
}

.register-card {
    max-width: 680px;
}

.password-card {
    max-width: 520px;
}

.header-container,
.logo-container {
    text-align: center;
    margin-bottom: 30px;
}

.logo-container img {
    height: 120px;
    border-radius: 15px;
}

.card-title {
    color: white;
    font-weight: 700;
    margin-bottom: 8px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.page-title {
    font-size: 28px;
}

.company-name {
    margin-bottom: 8px;
}

.card-subtitle {
    color: rgba(255, 255, 255, 0.9);
    font-size: 14px;
    font-weight: 300;
    margin-bottom: 0;
}

.pass-subtitle {
    line-height: 1.4;
}

.security-icon {
    font-size: 48px;
    color: #FFD700;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.form-floating {
    margin-bottom: 20px;
    position: relative;
}

.form-floating>.form-control-plaintext~label::after,
.form-floating>.form-control:focus~label::after,
.form-floating>.form-control:not(:placeholder-shown)~label::after,
.form-floating>.form-select~label::after {
    background-color: rgba(0, 0, 0, 0)
}

.form-floating>.form-control:focus~label,
.form-floating>.form-control:-webkit-autofill~label{
    color: rgba(var(--bs-body-color-rgb),.65);
}

.form-control,
.form-select {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 12px;
    color: white;
    font-size: 16px;
    padding: 12px 16px;
    transition: all 0.3s ease;
}

.password-card .form-control {
    padding: 12px 50px 12px 16px;
}

.form-control:focus,
.form-select:focus {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.5);
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.1);
    color: white;
}

.form-control::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.form-floating>label {
    color: rgba(255, 255, 255, 0.8);
    font-weight: 500;
}

.form-select {
    color: white;
}

.form-select option {
    background: rgba(0, 0, 0, 0.9);
    color: white;
}

.form-check {
    margin: 20px 0;
}

.form-check-label {
    color: rgba(255, 255, 255, 0.9);
    font-size: 14px;
    line-height: 1.4;
}

.form-check-label a {
    color: #667eea;
    text-decoration: none;
}

.form-check-label a:hover {
    color: #7ab3e2;
    text-decoration: underline;
}

#forgotPassForm .form-control{
    color: black;
    background-color: white;
    border: 2px solid lightgray;
}

#forgotPassForm .form-control:focus {
    border-color: #86b7fe;
    outline: 0;
    box-shadow: 0 0 0 .25rem rgba(13,110,253,.25);
}

.form-control.is-invalid {
  background-color: rgba(0, 0, 0, 0.4);
  border-color: #ff4d4f;
  border-width: 2px;
  box-shadow: 0 0 5px rgba(255, 77, 79, 0.8);
}

.form-control.is-invalid:focus~label {
  color: white;
}

.invalid-feedback {
  color: #ffa9a9;
  font-weight: bold;
  text-shadow: 0px 0px 3px black;
}

.custom-checkbox .form-check-input:invalid ~ .form-check-label {
  color: #ffdddd;
}

.btn-submit {
    background: linear-gradient(135deg, #FFD700 0%, #FF8C00 100%);
    border: none;
    border-radius: 12px;
    color: white;
    font-size: 16px;
    font-weight: 600;
    padding: 12px;
    width: 100%;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 10px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.btn-submit:hover {
    background: linear-gradient(135deg, #FFD700 0%, #FF8C00 100%);
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(255, 215, 0, 0.4);
    color: white;
}

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

.btn-submit:disabled {
    background: rgba(255, 255, 255, 0.2);
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.back-link,
.login-link {
    text-align: center;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.forgot-password {
    text-align: center;
    margin-top: 20px;
    margin-bottom: 15px;
}

.forgot-password a,
.register-link a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    font-size: 14px;
    transition: all 0.3s ease;
}

.forgot-password a:hover,
.register-link a:hover {
    color: white;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

.login-link p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 14px;
    margin-bottom: 0;
}

.login-link a {
    color: #667eea;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.login-link a:hover {
    color: #7ab3e2;
    text-shadow: 0 0 10px rgba(0, 132, 255, 0.3);
}

.back-link a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    font-size: 14px;
    transition: all 0.3s ease;
}

.back-link a:hover {
    color: white;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

.register-link {
    text-align: center;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.register-link p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 14px;
}

.register-link a {
    font-weight: 600;
    color: #667eea;
}

.register-link a:hover {
    color: #7ab3e2;
    text-shadow: 0 0 10px rgba(102, 126, 234, 0.3);
}

.city-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    max-height: 200px;
    overflow-y: auto;
    z-index: 1000;
}

.city-option {
    padding: 12px 16px;
    color: rgba(255, 255, 255, 0.9);
    cursor: pointer;
    transition: all 0.2s ease;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.city-option:last-child {
    border-bottom: none;
}

.city-option:hover,
.city-option.highlighted {
    background: rgba(255, 215, 0, 0.2);
    color: white;
}

.city-loading {
    padding: 12px 16px;
    color: rgba(255, 255, 255, 0.7);
    text-align: center;
    font-style: italic;
}

.city-no-results {
            padding: 12px 16px;
            color: rgba(255, 255, 255, 0.6);
            text-align: center;
            font-style: italic;
}

.password-strength {
    font-size: 12px;
    margin-top: 5px;
    color: rgba(255, 255, 255, 0.7);
}

.strength-weak {
    color: #ff6b6b;
}

.strength-medium {
    color: #feca57;
}

.strength-strong {
    color: #48dbfb;
}

.password-match {
    font-size: 12px;
    margin-top: 5px;
}

.match-success {
    color: #48dbfb;
}

.match-error {
    color: #ff6b6b;
}

.security-tips {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 15px;
    margin-bottom: 20px;
}

.security-tips h6 {
    color: #FFD700;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 10px;
}

.security-tips ul {
    color: rgba(255, 255, 255, 0.8);
    font-size: 12px;
    margin-bottom: 0;
    padding-left: 20px;
}

.security-tips li {
    margin-bottom: 5px;
}

.alert-custom {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    color: white;
    padding: 12px 15px;
    margin-bottom: 20px;
    font-size: 14px;
}

.alert-success {
    border-color: rgba(72, 219, 251, 0.5);
    background: rgba(72, 219, 251, 0.1);
}

.alert-error {
    border-color: rgba(255, 107, 107, 0.5);
    background: rgba(255, 107, 107, 0.1);
}

/* Animación de entrada */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 576px) {
    .auth-card {
        margin: 10px;
        padding: 30px 25px;
    }

    .company-name {
        font-size: 20px;
    }

    .card-title {
        font-size: 24px;
    }

    .security-icon {
        font-size: 36px;
    }
}

@media (max-height: 800px) {
    .register-container {
        padding: 10px;
    }

    .register-card {
        padding: 30px;
    }
}