/* Auth Pages Styles - Solo elementos específicos de Auth */

/* Auth Container */
.auth-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: calc(100vh - 400px);
    padding: 60px 20px;
    background: linear-gradient(135deg, var(--light-bg) 0%, #f0f0f0 100%);
}

/* Auth Form */
.auth-form {
    background-color: white;
    border-radius: 20px;
    box-shadow: var(--shadow-heavy);
    padding: 50px;
    width: 100%;
    max-width: 500px;
    border: 1px solid rgba(13, 51, 39, 0.08);
    position: relative;
    overflow: hidden;
}

.auth-form::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 50%, var(--accent-color) 100%);
}

.auth-form h1 {
    font-family: var(--heading-font);
    font-size: 32px;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 30px;
    text-align: center;
    letter-spacing: -0.5px;
    position: relative;
    padding-top: 15px;
}

/* Auth Description */
.auth-description {
    text-align: center;
    margin-bottom: 35px;
    color: #666;
    line-height: 1.6;
    font-size: 16px;
    font-weight: 300;
    padding: 20px;
    background-color: var(--light-bg);
    border-radius: 10px;
    border: 1px solid rgba(13, 51, 39, 0.08);
}

/* Auth Messages */
.auth-error, .auth-success {
    padding: 15px 20px;
    border-radius: 10px;
    margin-bottom: 25px;
    font-weight: 500;
    border: 2px solid;
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.auth-error {
    background-color: #f8d7da;
    color: #721c24;
    border-color: #f5c6cb;
}

.auth-success {
    background-color: #d4edda;
    color: #155724;
    border-color: #c3e6cb;
}

/* Form Groups */
.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--primary-color);
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.form-group small {
    display: block;
    margin-top: 8px;
    font-size: 12px;
    color: #666;
    font-weight: 400;
    padding-left: 5px;
}

/* Form Controls */
.form-control {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid #e8e8e8;
    border-radius: 10px;
    font-family: var(--body-font);
    font-size: 16px;
    transition: all 0.3s ease;
    background-color: #fafafa;
    position: relative;
}

.form-control:focus {
    outline: none;
    border-color: var(--secondary-color);
    background-color: white;
    box-shadow: 0 0 0 3px rgba(176, 136, 64, 0.1);
    transform: translateY(-1px);
}

.form-control:hover {
    border-color: var(--secondary-color);
    background-color: white;
}

.form-control::placeholder {
    color: #999;
    font-weight: 300;
}

/* Form Row */
.form-row {
    display: flex;
    gap: 20px;
    margin-bottom: 25px;
}

.form-row .form-group {
    flex: 1;
    margin-bottom: 0;
}

/* Form Footer */
.form-footer {
    margin-top: 35px;
}

.form-footer button {
    width: 100%;
    padding: 16px;
    font-size: 16px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    background: linear-gradient(135deg, var(--primary-color) 0%, #1a4d3a 100%);
    color: var(--light-color);
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(13, 51, 39, 0.3);
    position: relative;
    overflow: hidden;
}

.form-footer button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--accent-color) 0%, #7e2a3e 100%);
    transition: left 0.3s ease;
    z-index: 0;
}

.form-footer button:hover::before {
    left: 0;
}

.form-footer button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(13, 51, 39, 0.4);
}

.form-footer button span {
    position: relative;
    z-index: 1;
}

/* Auth Links */
.auth-links {
    margin-top: 30px;
    text-align: center;
    font-size: 14px;
    padding-top: 25px;
    border-top: 1px solid #eee;
}

.auth-links p {
    margin-bottom: 12px;
    color: #666;
    font-weight: 400;
}

.auth-links a {
    color: var(--accent-color);
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    padding: 5px 10px;
    border-radius: 6px;
}

.auth-links a:hover {
    color: var(--primary-color);
    background-color: var(--light-bg);
    text-decoration: underline;
}

/* Loading State */
.form-footer button:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.form-footer button:disabled::before {
    display: none;
}

.loading-spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid #ffffff;
    border-radius: 50%;
    border-top-color: transparent;
    animation: spin 1s ease-in-out infinite;
    margin-right: 10px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Password Strength Indicator */
.password-strength {
    margin-top: 8px;
    height: 4px;
    border-radius: 2px;
    background-color: #eee;
    overflow: hidden;
    transition: all 0.3s ease;
}

.password-strength .strength-bar {
    height: 100%;
    transition: all 0.3s ease;
    border-radius: 2px;
}

.password-strength.weak .strength-bar {
    width: 33%;
    background-color: #dc3545;
}

.password-strength.medium .strength-bar {
    width: 66%;
    background-color: #ffc107;
}

.password-strength.strong .strength-bar {
    width: 100%;
    background-color: #28a745;
}

/* Checkbox Styling */
.checkbox-container {
    display: flex;
    align-items: center;
    cursor: pointer;
    user-select: none;
    padding: 15px 0;
    margin-bottom: 10px;
}

.checkbox-container input[type="checkbox"] {
    margin-right: 12px;
    transform: scale(1.2);
    accent-color: var(--primary-color);
}

.checkbox-container label {
    cursor: pointer;
    margin-bottom: 0;
    text-transform: none;
    letter-spacing: normal;
    font-weight: 400;
    color: #666;
}

/* Social Login Buttons */
.social-login {
    margin: 30px 0;
    padding-top: 25px;
    border-top: 1px solid #eee;
}

.social-login h3 {
    text-align: center;
    margin-bottom: 20px;
    color: #666;
    font-size: 14px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.social-buttons {
    display: flex;
    gap: 15px;
}

.social-btn {
    flex: 1;
    padding: 12px;
    border: 2px solid #e8e8e8;
    border-radius: 8px;
    background-color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-weight: 600;
    text-decoration: none;
}

.social-btn:hover {
    border-color: var(--secondary-color);
    background-color: var(--light-bg);
    transform: translateY(-1px);
}

.social-btn img {
    width: 20px;
    height: 20px;
}

/* Responsive Styles */
@media (max-width: 768px) {
    .auth-container {
        padding: 40px 15px;
        min-height: calc(100vh - 300px);
    }
    
    .auth-form {
        padding: 35px 25px;
        max-width: 100%;
        border-radius: 16px;
    }
    
    .auth-form h1 {
        font-size: 28px;
    }
    
    .auth-description {
        padding: 15px;
        margin-bottom: 25px;
    }
    
    .form-row {
        flex-direction: column;
        gap: 0;
    }
    
    .social-buttons {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .auth-container {
        padding: 30px 10px;
    }
    
    .auth-form {
        padding: 25px 20px;
        box-shadow: var(--shadow-medium);
    }
    
    .auth-form h1 {
        font-size: 24px;
    }
    
    .form-control {
        padding: 12px 14px;
        font-size: 14px;
    }
    
    .form-footer {
        margin-top: 25px;
    }
    
    .form-footer button {
        padding: 14px;
        font-size: 14px;
    }
    
    .auth-links {
        margin-top: 20px;
        padding-top: 20px;
    }

    
}

/* Estilos para el selector de teléfono con países */
.phone-row {
    display: flex;
    gap: 10px;
    margin-bottom: 5px;
}

.country-select-container {
    width: 160px;
    min-width: 160px;
}

.phone-input-container {
    flex: 1;
}

/* Estilos para el custom select */
.custom-select {
    position: relative;
    width: 100%;
    margin-bottom: 0;
}

.selected-option {
    display: flex;
    align-items: center;
    padding: 14px 16px;
    border: 2px solid #e8e8e8;
    border-radius: 10px;
    cursor: pointer;
    background-color: #fafafa;
    transition: all 0.3s ease;
    font-family: var(--body-font);
    font-size: 16px;
}

.selected-option:hover {
    border-color: var(--secondary-color);
    background-color: white;
}

.selected-option:after {
    content: '▼';
    margin-left: auto;
    font-size: 12px;
    color: #777;
}

.select-options {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    max-height: 350px;
    overflow-y: auto;
    background: white;
    border: 2px solid #e8e8e8;
    border-top: none;
    border-radius: 0 0 10px 10px;
    z-index: 10;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.select-options.show {
    display: block;
}

.search-container {
    padding: 10px;
    position: sticky;
    top: 0;
    background: white;
    border-bottom: 1px solid #eee;
    z-index: 1;
}

.country-search {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    font-family: var(--body-font);
}

.options-container {
    max-height: 250px;
    overflow-y: auto;
}

.select-option {
    display: flex;
    align-items: center;
    padding: 10px 15px;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.select-option:hover {
    background-color: #f5f5f5;
}

.country-flag {
    width: 20px;
    height: auto;
    margin-right: 8px;
    vertical-align: middle;
    border-radius: 2px;
    box-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

/* Estilos para el loading spinner */
.loading-spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid #ffffff;
    border-radius: 50%;
    border-top-color: transparent;
    animation: spin 1s ease-in-out infinite;
    margin-right: 10px;
    vertical-align: middle;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}