* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    text-decoration: none;
    font-family: 'Roboto', sans-serif; 
}

body {
    background-image:url(../IMG/Fondo\ \(1\).jpg) ;
    background-size: cover; 
    background-position: center; 
    background-repeat: no-repeat; 
    background-attachment: fixed;
    height: 100vh; 
    margin: 0; 
    color: #333;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

.login-container {
    max-width: 500px;
    width: 100%;
    padding: 30px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    box-sizing: border-box;
}

h2 {
    text-align: center;
    color: #0077b6; ;
    font-size: 28px;
    margin-bottom: 20px;
}

input, select, button {
    width: 100%;
    padding: 14px;
    margin: 10px 0;
    border-radius: 8px;
    border: 1px solid #ddd;
    box-sizing: border-box;
    font-size: 16px;
}

input[type="email"], input[type="password"], select {
    background-color: #f9f9f9;
}

button {
    background: linear-gradient(135deg, #ffb703, #ff8c00); ;
    color: white;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

button:hover {
    background: linear-gradient(135deg, #ffb703, #ff8c00);
}

.message {
    padding: 15px;
    margin: 20px 0;
    border-radius: 8px;
    color: #c70c0c;
    text-align: center;
    font-size: 16px;
    position: relative;
    transition: opacity 0.5s ease-in-out;
}

.message.success {
    background-color: #4CAF50; 
}

.message.error {
    background-color: #f44336; 
}

.message.hide {
    opacity: 0;
    pointer-events: none;
}


.admin-toggle {
    display: flex;
    justify-content: center;
    margin-top: 20px;
}

.switch {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 34px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: 0.4s;
    border-radius: 34px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 26px;
    width: 26px;
    border-radius: 50%;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: 0.4s;
}

input:checked + .slider {
    background: linear-gradient(135deg, #ffb703, #ff8c00);
}

input:checked + .slider:before {
    transform: translateX(26px);
}

#admin-login-form {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #fff;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    z-index: 2; 
    display: none;
    width: 90%;
    max-width: 400px;
    animation: fadeIn 0.5s ease-in-out;
}
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translate(-50%, -40%);
    }
    to {
        opacity: 1;
        transform: translate(-50%, -50%);
    }
}



.admin-panel {
    display: none;
    padding: 30px;
    background: #fff;
    border-radius: 12px;
    margin-top: 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    max-width: 500px;
    width: 100%;
    box-sizing: border-box;
}


.admin-panel h3 {
    background: linear-gradient(135deg, #ffb703, #ff8c00);
    text-align: center;
    font-size: 24px;
    margin-bottom: 20px;
}


.admin-panel ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.admin-panel ul li {
    margin: 15px 0;
}

.admin-panel ul li a {
    background: linear-gradient(135deg, #ffb703, #ff8c00);
    text-decoration: none;
    font-size: 18px;
    font-weight: 500;
    padding: 10px;
    border-radius: 8px;
    transition: background-color 0.3s ease, color 0.3s ease;
    display: block; 
}


.admin-panel ul li a:hover {
    background: linear-gradient(135deg, #ffb703, #ff8c00);
    color: white;
}


.admin-panel ul li a + li a {
    margin-top: 10px;
}


#create-user-form {
    display: none;
    transition: max-height 0.5s ease-out, opacity 0.5s ease-in-out;
    max-height: 0;
    opacity: 0;
}

#create-user-form.active {
    display: block;
    max-height: 500px;
    opacity: 1;
}


#create-user-form form {
    background: #fff;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

#create-user-form input,
#create-user-form select,
#create-user-form button {
    width: 100%;
    padding: 12px;
    margin: 10px 0;
    border-radius: 8px;
    border: 1px solid #ddd;
    box-sizing: border-box;
    font-size: 16px;
    background-color: #f9f9f9;
}

#create-user-form button {
    background: linear-gradient(135deg, #ffb703, #ff8c00);
    color: white;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

#create-user-form button:hover {
    background: linear-gradient(135deg, #ffb703, #ff8c00);
}


#overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5); 
    backdrop-filter: blur(5px); 
    z-index: 1; 
    display: none;
}


#admin-login-form.active + #overlay {
    display: block;
    pointer-events: all;
    opacity: 1;
}
.admin-options {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 20px;
}

.admin-link {
    display: inline-block;
    padding: 12px 30px;
    text-align: center;
    text-decoration: none;
    font-size: 16px;
    font-weight: 600;
    color: white;
    background: linear-gradient(135deg, #4a90e2, #007bff);
    border-radius: 30px;
    box-shadow: 0 4px 10px rgba(0, 123, 255, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.admin-link:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(0, 123, 255, 0.4);
    background: linear-gradient(135deg, #357ab7, #0056b3);
}


@media (max-width: 768px) {
    .admin-options {
        flex-direction: column;
        gap: 15px;
    }

    .admin-link {
        width: 100%;
        padding: 15px;
    }
}
.login-wrapper {
    display: flex;
    align-items: center; 
    justify-content: center; 
    gap: 40px; 
}

.logo {
    display: block;
    margin: 0 auto 20px;
    width: 180px;
    height: auto;
    background: rgba(255, 255, 255, 0.7);
    padding: 10px;
    border-radius: 10px;
}

.admin-link{
    background: linear-gradient(135deg, #ffb703, #ff8c00)
}
.admin-message {
    color: rgb(146, 16, 16); 
    font-size: 16px;
    padding: 10px;
    border-radius: 5px;
    margin-top: 15px;
    text-align: center;
}

.btn-video {
    display: block;         
    width: 100%;           
    padding: 14px;
    background-color: #0073e6;
    color: white;
    font-size: 16px;
    text-align: center;     
    border-radius: 8px;
    text-decoration: none;
    transition: background 0.3s ease;
    box-sizing: border-box; 
}
.btn-video:hover {
    background-color: #005bb5;
}