* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-orange: #FF6B35;
    --primary-blue: #4ECDC4;
    --text-dark: #333333;
    --text-gray: #666666;
    --border-color: #E0E0E0;
    --white: #FFFFFF;
    --facebook-blue: #1877F2;
    --google-red: #EA4335;
    --twitter-blue: #1DA1F2;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background-color: var(--white);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    overflow-x: hidden;
}

.container {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 520px;
}

/* Formulario de Login */
.login-form-container {
    flex: 0 0 auto;
    width: 100%;
    max-width: 480px;
    z-index: 10;
}

.login-form {
    background: var(--white);
    border-radius: 20px;
    padding: 50px 40px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
}

/* Logo Section */
.logo-section {
    text-align: center;
    margin-bottom: 40px;
}

.logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 20px;
}

.logo-text {
    font-size: 28px;
    font-weight: 700;
    color: var(--primary-blue);
    letter-spacing: -0.5px;
}

.form-title {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-dark);
    margin: 0;
    line-height: 1.3;
}

/* Form Styles */
.form {
    width: 100%;
}

.form-group {
    margin-bottom: 24px;
}

.phone-field {
    display: flex;
    gap: 12px;
}

.phone-field .iti {
    width: 100%;
}

.input-wrapper {
    position: relative;
}

.input-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    width: 18px;
    height: 18px;
    opacity: 0.75;
    pointer-events: none;
}

.form-label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-dark);
    margin-bottom: 8px;
}

.form-input {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid var(--border-color);
    border-radius: 10px;
    font-size: 15px;
    font-family: inherit;
    color: var(--text-dark);
    background: var(--white);
    transition: all 0.3s ease;
}

.form-input.with-icon {
    padding-left: 46px;
}

.toggle-password {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    border: none;
    background: transparent;
    cursor: pointer;
    padding: 4px;
    display: flex;
    align-items: center;
}

.toggle-password svg {
    width: 18px;
    height: 18px;
    fill: var(--text-gray);
    transition: fill 0.2s ease;
}

.toggle-password:hover svg {
    fill: var(--primary-orange);
}

.toggle-password .icon-eye-off {
    display: none;
}

.toggle-password.is-visible .icon-eye {
    display: none;
}

.toggle-password.is-visible .icon-eye-off {
    display: inline-flex;
}

.form-input:focus {
    outline: none;
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 3px rgba(78, 205, 196, 0.1);
}

.form-input::placeholder {
    color: var(--text-gray);
    opacity: 0.6;
}

/* Form Options */
.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    font-size: 14px;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    color: var(--text-dark);
}

.checkbox-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: var(--primary-blue);
}

.lost-password {
    color: var(--primary-blue);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.lost-password:hover {
    color: var(--primary-orange);
}

/* Login Button */
.btn-login {
    width: 100%;
    padding: 16px;
    background: var(--primary-blue);
    color: var(--white);
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 30px;
}

.btn-login:hover {
    background: #3db5ad;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(78, 205, 196, 0.3);
}

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

/* Register Section */
.register-section {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
}

.register-text {
    font-size: 14px;
    color: var(--text-gray);
}

.register-link {
    color: var(--primary-blue);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.register-link:hover {
    color: var(--primary-orange);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .container {
        padding: 20px;
        max-width: 100%;
    }
}

@media (max-width: 768px) {
    body {
        padding: 14px;
        align-items: flex-start;
    }

    .container {
        padding: 0;
        max-width: 100%;
    }

    .login-form-container {
        max-width: 100%;
    }

    .login-form {
        padding: 32px 22px;
    }
    
    .logo-text {
        font-size: 24px;
    }
    
    .form-title {
        font-size: 20px;
    }
}

@media (max-width: 480px) {
    body {
        padding: 10px;
    }

    .login-form {
        padding: 22px 14px;
        border-radius: 15px;
    }
    
    .logo-text {
        font-size: 20px;
    }
    
    .form-title {
        font-size: 18px;
    }
    
    .form-options {
        flex-direction: column;
        gap: 12px;
        align-items: flex-start;
    }

    .form-input {
        font-size: 16px;
        padding: 12px 12px;
    }

    .form-input.with-icon {
        padding-left: 42px;
    }

    .input-icon {
        left: 12px;
        width: 16px;
        height: 16px;
    }

    .btn-login {
        min-height: 44px;
        font-size: 14px;
        padding: 12px;
        margin-bottom: 18px;
    }
}
