@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap");

:root {
    --primary-color: #e50914;
    --primary-color-hover: #c40812;
    --text-color: #ffffff;
    --text-secondary: #b3b3b3;
    --background-dark: rgba(0, 0, 0, 0.85);
    --input-bg: #333333;
    --input-bg-focus: #454545;
    --transition: all 0.3s ease;
    --border-radius: 8px;
    --box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

body {
    background: #000;
    color: var(--text-color);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

body::before {
    content: "";
    position: fixed;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.7)), 
                url("images/hero-img.jpg");
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    z-index: -1;
    animation: slowZoom 30s infinite alternate;
}

@keyframes slowZoom {
    0% {
        transform: scale(1);
    }
    100% {
        transform: scale(1.1);
    }
}

.container {
    width: 100%;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    position: relative;
}

/* Header/Navbar */
nav {
    position: fixed;
    padding: 25px 60px;
    z-index: 100;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.8) 0%, transparent 100%);
}

nav a img {
    width: 167px;
    transition: var(--transition);
}

nav a img:hover {
    transform: scale(1.05);
}

.nav-links {
    display: flex;
    gap: 20px;
}

.nav-links a {
    color: var(--text-color);
    text-decoration: none;
    font-size: 1rem;
    font-weight: 500;
    transition: var(--transition);
    padding: 8px 15px;
    border-radius: var(--border-radius);
}

.nav-links a:hover {
    color: var(--primary-color);
    background-color: rgba(255, 255, 255, 0.1);
}

/* Form wrapper */
.form-wrapper {
    position: relative;
    border-radius: var(--border-radius);
    padding: 50px;
    width: 450px;
    margin: auto;
    background: var(--background-dark);
    box-shadow: var(--box-shadow);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    transform: translateY(0);
    transition: var(--transition);
}

.form-wrapper:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
}

.form-wrapper h2 {
    color: var(--text-color);
    font-size: 2.2rem;
    font-weight: 600;
    margin-bottom: 10px;
}

.form-wrapper p.subtitle {
    color: var(--text-secondary);
    margin-bottom: 30px;
    font-size: 1rem;
}

.form-wrapper form {
    margin: 25px 0 35px;
}

/* Form controls */
form .form-control {
    height: 55px;
    position: relative;
    margin-bottom: 20px;
    border-radius: var(--border-radius);
    overflow: hidden;
}

.form-control input {
    height: 100%;
    width: 100%;
    background: var(--input-bg);
    border: none;
    outline: none;
    border-radius: var(--border-radius);
    color: var(--text-color);
    font-size: 1rem;
    padding: 0 20px;
    transition: var(--transition);
}

.form-control input:is(:focus, :valid) {
    background: var(--input-bg-focus);
    padding: 16px 20px 0;
    border-left: 3px solid var(--primary-color);
}

.form-control label {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1rem;
    pointer-events: none;
    color: var(--text-secondary);
    transition: var(--transition);
}

.form-control input:is(:focus, :valid)~label {
    font-size: 0.75rem;
    transform: translateY(-130%);
}

/* Button styling */
form button {
    width: 100%;
    padding: 16px 0;
    font-size: 1rem;
    background: var(--primary-color);
    color: var(--text-color);
    font-weight: 600;
    border-radius: var(--border-radius);
    border: none;
    outline: none;
    margin: 25px 0 10px;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 4px 8px rgba(229, 9, 20, 0.3);
    position: relative;
    overflow: hidden;
}

form button:before {
    content: '';
    position: absolute;
    left: -100%;
    top: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: var(--transition);
}

form button:hover {
    background: var(--primary-color-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(229, 9, 20, 0.4);
}

form button:hover:before {
    left: 100%;
}

form button:active {
    transform: translateY(1px);
}

form button i {
    margin-left: 8px;
    transition: var(--transition);
}

form button:hover i {
    transform: translateX(5px);
}

/* Help section */
form .form-help {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 15px;
}

form .remember-me {
    display: flex;
    align-items: center;
}

/* Custom checkbox */
.custom-checkbox {
    position: relative;
    padding-left: 30px;
    cursor: pointer;
    font-size: 0.9rem;
    user-select: none;
    color: var(--text-secondary);
}

.custom-checkbox input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.checkmark {
    position: absolute;
    top: 0;
    left: 0;
    height: 18px;
    width: 18px;
    background-color: var(--input-bg);
    border-radius: 4px;
}

.custom-checkbox:hover input ~ .checkmark {
    background-color: var(--input-bg-focus);
}

.custom-checkbox input:checked ~ .checkmark {
    background-color: var(--primary-color);
}

.checkmark:after {
    content: "";
    position: absolute;
    display: none;
}

.custom-checkbox input:checked ~ .checkmark:after {
    display: block;
}

.custom-checkbox .checkmark:after {
    left: 6px;
    top: 2px;
    width: 5px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

/* Links */
.form-wrapper a {
    text-decoration: none;
    color: var(--text-secondary);
    transition: var(--transition);
}

.form-wrapper a:hover {
    color: var(--text-color);
    text-decoration: underline;
}

.form-wrapper p a {
    color: var(--text-color);
    font-weight: 500;
}

.form-wrapper small {
    display: block;
    margin-top: 20px;
    color: var(--text-secondary);
    font-size: 0.85rem;
    line-height: 1.5;
}

.form-wrapper small a {
    color: #0071eb;
    font-weight: 500;
}

.form-wrapper small a:hover {
    text-decoration: underline;
}

/* Social login */
.social-login {
    margin-top: 25px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.social-login p {
    text-align: center;
    color: var(--text-secondary);
    position: relative;
}

.social-login p:before,
.social-login p:after {
    content: "";
    position: absolute;
    top: 50%;
    width: 35%;
    height: 1px;
    background-color: rgba(255, 255, 255, 0.1);
}

.social-login p:before {
    left: 0;
}

.social-login p:after {
    right: 0;
}

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

.social-icons button {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    background: var(--input-bg);
    cursor: pointer;
    transition: var(--transition);
}

.social-icons button:hover {
    transform: translateY(-3px);
    background: var(--input-bg-focus);
}

.social-icons i {
    font-size: 1.2rem;
    color: var(--text-color);
}

/* Corner badge for features */
.corner-badge {
    position: absolute;
    top: 0;
    right: 0;
    background: var(--primary-color);
    color: white;
    padding: 5px 15px;
    font-size: 0.8rem;
    font-weight: 500;
    border-radius: 0 var(--border-radius) 0 var(--border-radius);
}

/* Footer */
footer {
    width: 100%;
    color: var(--text-secondary);
    padding: 30px 60px;
    position: absolute;
    bottom: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, transparent 100%);
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.footer-links {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 15px;
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--text-color);
}

/* Desktop-specific enhancements */
@media (min-width: 1024px) {
    .form-wrapper {
        width: 450px;
        margin: auto;
        transform: scale(1);
    }
    
    .form-wrapper:hover {
        transform: translateY(-5px) scale(1.02);
    }
    
    /* Button animation for desktop */
    form button i {
        opacity: 0;
        transform: translateX(-10px);
    }
    
    form button:hover i {
        opacity: 1;
        transform: translateX(0);
    }
    
    /* Enhanced navbar for desktop */
    .nav-links {
        gap: 25px;
    }
    
    .nav-links a {
        position: relative;
    }
    
    .nav-links a::after {
        content: '';
        position: absolute;
        left: 15px;
        bottom: 0;
        width: 0;
        height: 2px;
        background: var(--primary-color);
        transition: var(--transition);
    }
    
    .nav-links a:hover::after {
        width: calc(100% - 30px);
    }
}

/* Responsive design */
@media (max-width: 1023px) {
    nav {
        padding: 20px;
    }

    nav a img {
        width: 140px;
    }
    
    .nav-links {
        display: none;
    }

    .form-wrapper {
        width: 90%;
        max-width: 450px;
        padding: 30px;
        margin: 20px auto;
    }
    
    .form-wrapper h2 {
        font-size: 1.8rem;
    }
    
    form .form-help {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    footer {
        position: relative;
        padding: 20px;
    }
}

@media (max-width: 480px) {
    .form-wrapper {
        padding: 25px 20px;
    }
    
    .social-icons button {
        width: 40px;
        height: 40px;
    }
    
    .footer-links {
        gap: 10px;
    }
}
