@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600;700&display=swap');
        
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    background: linear-gradient(135deg, #7db899 0%, #6ba085 50%, #5a8871 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #333;
    overflow: hidden;
    position: relative;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml,<svg width="60" height="60" viewBox="0 0 60 60" xmlns="http://www.w3.org/2000/svg"><g fill="none" fill-rule="evenodd"><g fill="%23ffffff" fill-opacity="0.05"><circle cx="30" cy="30" r="2"/></g></g></svg>');
    pointer-events: none;
    z-index: -1;
}

.floating-shapes {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
}

.shape {
    position: absolute;
    opacity: 0.1;
}

.shape-1 {
    top: 10%;
    left: 10%;
    width: 120px;
    height: 120px;
    background: linear-gradient(45deg, #ffffff, transparent);
    border-radius: 50%;
    animation: float1 8s ease-in-out infinite;
}

.shape-2 {
    top: 70%;
    right: 10%;
    width: 80px;
    height: 80px;
    background: linear-gradient(45deg, #ffffff, transparent);
    transform: rotate(45deg);
    animation: float2 6s ease-in-out infinite;
}

.shape-3 {
    bottom: 10%;
    left: 15%;
    width: 100px;
    height: 100px;
    background: linear-gradient(45deg, #ffffff, transparent);
    clip-path: polygon(50% 0%, 0% 100%, 100% 100%);
    animation: float3 7s ease-in-out infinite;
}

.container {
    position: relative;
    z-index: 1;
}

.auth-container {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-radius: 25px;
    padding: 50px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    min-width: 450px;
    position: relative;
    overflow: hidden;
    animation: slideIn 0.8s ease-out;
}

.auth-container::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 100%;
    background: conic-gradient(from 0deg, transparent, rgba(125, 184, 153, 0.1), transparent);
    animation: rotate 12s linear infinite;
}

.toggle-buttons {
    display: flex;
    background: rgba(125, 184, 153, 0.1);
    border-radius: 50px;
    padding: 5px;
    margin-bottom: 40px;
    position: relative;
    z-index: 2;
}

.toggle-btn {
    flex: 1;
    padding: 15px 30px;
    border: none;
    background: transparent;
    border-radius: 50px;
    cursor: pointer;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    color: #666;
    position: relative;
    z-index: 1;
}

.toggle-btn.active {
    background: linear-gradient(135deg, #7db899, #6ba085);
    color: white;
    box-shadow: 0 8px 25px rgba(125, 184, 153, 0.3);
    transform: translateY(-2px);
}

.form-container {
    position: relative;
    z-index: 2;
}

.form {
    display: none;
    animation: fadeIn 0.5s ease-in-out;
}

.form.active {
    display: block;
}

.form-title {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 30px;
    text-align: center;
    background: linear-gradient(135deg, #7db899, #5a8871);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.form-group {
    margin-bottom: 25px;
    position: relative;
}

.form-input {
    width: 100%;
    padding: 18px 20px;
    background: linear-gradient(135deg, #7db899, #6ba085);
    border: none;
    border-radius: 15px;
    font-size: 1rem;
    color: #333;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
}

.form-input::placeholder {
    color: rgba(51, 51, 51, 0.7);
    font-weight: 400;
}

.form-input:focus {
    outline: none;
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(125, 184, 153, 0.4);
    background: linear-gradient(135deg, #8bc9a5, #7ab891);
}

.form-input:hover {
    transform: translateY(-1px);
    box-shadow: 0 5px 20px rgba(125, 184, 153, 0.2);
}

.submit-btn {
    width: 100%;
    padding: 18px;
    background: linear-gradient(135deg, #5a8871, #4a7561);
    color: white;
    border: none;
    border-radius: 15px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    overflow: hidden;
    margin-top: 10px;
}

.submit-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.submit-btn:hover::before {
    left: 100%;
}

.submit-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(90, 136, 113, 0.4);
    background: linear-gradient(135deg, #6a9581, #5a8571);
}

.submit-btn:active {
    transform: translateY(-1px);
}

.form-footer {
    text-align: center;
    margin-top: 25px;
    color: #666;
    font-size: 0.9rem;
}

.form-footer a {
    color: #7db899;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.form-footer a:hover {
    color: #5a8871;
    text-decoration: underline;
}

/* Estilos mejorados para alertas */
.alert {
    position: relative;
    padding: 16px 24px;
    border-radius: 12px;
    margin-bottom: 20px;
    font-size: 0.95rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    animation: slideIn 0.4s ease-out forwards;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    border-left: 4px solid transparent;
    transition: all 0.3s ease;
}

.alert::before {
    content: '';
    display: block;
    width: 22px;
    height: 22px;
    margin-right: 12px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

.alert-error {
    background-color: #ffebee;
    color: #c62828;
    border-left-color: #ef5350;
}

.alert-error::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%23c62828' viewBox='0 0 24 24'%3E%3Cpath d='M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm1 15h-2v-2h2v2zm0-4h-2V7h2v6z'/%3E%3C/svg%3E");
}

.alert-success {
    background-color: #e8f5e9;
    color: #2e7d32;
    border-left-color: #4caf50;
}

.alert-success::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%232e7d32' viewBox='0 0 24 24'%3E%3Cpath d='M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm-2 15l-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z'/%3E%3C/svg%3E");
}

.alert-info {
    background-color: #e3f2fd;
    color: #1565c0;
    border-left-color: #2196f3;
}

.alert-info::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%231565c0' viewBox='0 0 24 24'%3E%3Cpath d='M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm1 15h-2v-6h2v6zm0-8h-2V7h2v2z'/%3E%3C/svg%3E");
}

/* Efecto de cierre */
.alert-close {
    margin-left: auto;
    background: none;
    border: none;
    font-size: 1.2rem;
    cursor: pointer;
    color: inherit;
    opacity: 0.7;
    transition: opacity 0.2s;
    padding: 0 0 0 12px;
}

.alert-close:hover {
    opacity: 1;
}

/* Animaciones */
@keyframes slideIn {
    from {
        transform: translateX(30px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes fadeOut {
    from {
        opacity: 1;
        transform: translateX(0);
    }
    to {
        opacity: 0;
        transform: translateX(30px);
        margin-bottom: 0;
        padding-top: 0;
        padding-bottom: 0;
        height: 0;
        overflow: hidden;
    }
}

/* Para cerrar la alerta */
.alert.hide {
    animation: fadeOut 0.4s ease-out forwards;
}

.social-login {
    margin: 30px 0;
    text-align: center;
}

.social-divider {
    position: relative;
    margin: 25px 0;
    text-align: center;
    color: #999;
    font-size: 0.9rem;
}

.social-divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(to right, transparent, #ddd, transparent);
}

.social-divider span {
    background: rgba(255, 255, 255, 0.95);
    padding: 0 20px;
    position: relative;
    z-index: 1;
}

.social-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    margin: 0 10px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1.2rem;
}

.social-btn.google {
    background: linear-gradient(135deg, #db4437, #c23321);
    color: white;
}

.social-btn.facebook {
    background: linear-gradient(135deg, #3b5998, #2d4373);
    color: white;
}

.social-btn.twitter {
    background: linear-gradient(135deg, #1da1f2, #0d8bd9);
    color: white;
}

.social-btn:hover {
    transform: translateY(-3px) scale(1.1);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

@keyframes slideIn {
    from { 
        opacity: 0; 
        transform: translateY(50px) scale(0.9);
    }
    to { 
        opacity: 1; 
        transform: translateY(0) scale(1);
    }
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateX(20px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes float1 {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-30px) rotate(180deg); }
}

@keyframes float2 {
    0%, 100% { transform: translateY(0px) rotate(45deg); }
    50% { transform: translateY(-40px) rotate(225deg); }
}

@keyframes float3 {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-35px) rotate(180deg); }
}

@media (max-width: 768px) {
    .auth-container {
        min-width: 90%;
        padding: 30px 25px;
        margin: 20px;
    }

    .form-title {
        font-size: 1.8rem;
    }

    .toggle-btn {
        font-size: 0.9rem;
        padding: 12px 20px;
    }
}