/* public/css/auth.css */

/* General Reset */
html,
body {
    height: 100%;
    margin: 0;
    display: flex;
    flex-direction: column;
    font-family: Arial, sans-serif;
}

/* Header & Footer */
header {
    background: linear-gradient(135deg, #3a0ca3, #b5838d);
    color: white;
    padding: 5px 30px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

header img.logo {
    height: 60px;
}

main {
    padding: 20px;
    text-align: center;
    flex: 1;
}

/* Footer styles updated for centered social icons */
footer {
    background: linear-gradient(135deg, #3a0ca3, #b5838d);
    color: white;
    flex-wrap: wrap;
    text-align: center;
    flex-direction: column;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 15px 30px;
    justify-content: center;
}

.footer-center {
    font-size: 0.9rem;
}

.social-icons {
    display: flex;
    gap: 20px;
    justify-content: center;
}

.social-icons a {
    color: white;
    font-size: 1.4rem;
    transition: color 0.3s;
}

.social-icons a:hover {
    color: #ccc;
}

/* Login Container */
.login-container {
    display: flex;
    min-height: 70vh;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    border-radius: 10px;
    overflow: hidden;
    max-width: 1500px;
    margin: 40px auto;
    background: white;
}

.login-image {
    flex: 1;
    position: relative;
    overflow: hidden;
}

.login-image::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("../images/login-side.webp") no-repeat center center;
    background-size: cover;
    animation: zoomInOut 20s ease-in-out infinite alternate;
    z-index: 1;
}

.login-form {
    flex: 1;
    padding: 60px 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    animation: slideInRight 1.5s ease-out;
    z-index: 2;
    background-color: #fff;
}

.form-wrapper {
    max-width: 400px;
    width: 100%;
    margin: 0 auto;
}

.login-form form {
    display: flex;
    flex-direction: column;
}

.login-form h2 {
    margin-bottom: 20px;
    color: #4a00e0;
}

.login-form label {
    margin-bottom: 5px;
    margin-top: 5px;
    font-weight: bold;
    color: #a77590;
}

.login-form input[type="email"],
.login-form input[type="password"],
.login-form input[type="text"] {
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 1rem;
    box-sizing: border-box;
    width: 100%;
    font-family: inherit;
}

input:focus {
    outline: none;
    border: 2px solid #8e2de2;
    box-shadow: 0 0 8px rgba(142, 45, 226, 0.3);
    transition: border 0.3s, box-shadow 0.3s;
}

.password-input-container {
    position: relative;
    width: 100%;
    margin-bottom: 20px;
}

.toggle-password {
    position: absolute;
    top: 50%;
    right: 10px;
    transform: translateY(-50%);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
}

.login-form button {
    padding: 12px;
    background: #8e2de2;
    border: none;
    border-radius: 5px;
    color: white;
    font-weight: bold;
    cursor: pointer;
    font-size: 1.1rem;
    transition: background 0.3s;
}

.login-form button:hover {
    background: #a77590;
}

/* Animations */
@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }

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

@keyframes zoomInOut {
    from {
        transform: scale(1);
    }

    to {
        transform: scale(1.1);
    }
}

/* Responsive */
@media (max-width: 768px) {
    .login-container {
        flex-direction: column;
        max-width: 100%;
        margin: 20px;
    }

    .login-image::before {
        height: 200px;
    }

    .login-form {
        padding: 30px 20px;
    }

    .form-wrapper {
        max-width: 100%;
    }
}