@import "../components/form.css";

/* Reset/Base Overrides specific to Login Page */
body {
    background-color: #000;
    color: #fff;
    margin: 0;
    padding: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    overflow-x: hidden;
}

/* Override form.css grid layout for login page */
.login-form-wrapper .form {
    display: block;
}

.login-container {
    display: flex;
    min-height: 100vh;
    width: 100%;
}

/* Left Side - Hero */
.login-hero {
    flex: 1;
    background-color: #111;
    background-image: url('../../../admin/_img/bg.jpeg');
    background-size: cover;
    background-position: center;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 60px;
    color: #fff;
}

.login-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.8));
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.hero-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 20px;
    font-weight: 700;
}

.hero-logo img {
    height: 40px;
}

.hero-text {
    max-width: 600px;
}

.hero-text h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.1;
}

.hero-text p {
    font-size: 1.1rem;
    opacity: 0.9;
    line-height: 1.6;
}

/* Right Side - Form */
.login-form-wrapper {
    width: 100%;
    max-width: 550px;
    /* Or maybe larger/smaller depending on screen */
    background: #000;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 60px;
    position: relative;
    border-left: 1px solid rgba(255, 255, 255, 0.05);
}

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

.form-header {
    margin-bottom: 40px;
}

.form-header h2 {
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 10px;
    color: #fff;
}

.form-header p {
    color: #888;
    font-size: 0.95rem;
}

.login-notice {
    margin-top: 20px;
    padding: 15px 20px;
    background: rgba(34, 197, 94, 0.05);
    /* Greenish translucent */
    border: 1px solid rgba(34, 197, 94, 0.2);
    border-radius: 8px;
}

.login-notice p {
    margin: 0;
    color: #ccc;
    font-size: 0.9rem;
    line-height: 1.5;
}

.login-notice strong {
    color: #22c55e;
    font-weight: 600;
}

.login-notice a {
    color: #22c55e;
    text-decoration: none;
    font-weight: 600;
    border-bottom: 1px solid transparent;
    transition: all 0.2s ease;
}

.login-notice a:hover {
    border-bottom-color: #22c55e;
    opacity: 0.8;
}


/* Form Inputs */
.input-group {
    margin-bottom: 20px;
    position: relative;
}

.input-group input {
    width: 100%;
    background: rgba(255, 255, 255, 0.05) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    padding: 15px 45px 15px 15px !important;
    /* Right padding for icon */
    border-radius: 6px !important;
    color: #fff !important;
    font-size: 1rem !important;
    outline: none;
    transition: all 0.3s ease;
}

.input-group input:focus {
    border-color: #22c55e !important;
    background: rgba(255, 255, 255, 0.08) !important;
    box-shadow: none !important;
}

/* Autofill Fix for Dark Theme */
.input-group input:-webkit-autofill,
.input-group input:-webkit-autofill:hover,
.input-group input:-webkit-autofill:focus,
.input-group input:-webkit-autofill:active {
    -webkit-box-shadow: 0 0 0 30px #1a1a1a inset !important;
    -webkit-text-fill-color: white !important;
    transition: background-color 5000s ease-in-out 0s;
}

.input-group img.input-icon {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    width: 20px;
    height: 20px;
    filter: invert(0.5);
    /* Adjust color if needed */
}

.input-group .input-icon {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    color: rgba(255, 255, 255, 0.46);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0;
}

.input-group img.toggle-pass {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    width: 20px;
    height: 20px;
    filter: invert(0.5);
    /* Adjust color if needed */
}

.input-group img.toggle-pass:hover {
    filter: invert(1);
    /* Lighter on hover */
}

/* Options (Remember me / Forgot pass) */
.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    font-size: 0.9rem;
}

.remember-me {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #ccc;
    cursor: pointer;
}

.remember-me input {
    accent-color: #22c55e;
    width: 16px;
    height: 16px;
}

.forgot-pass {
    color: #22c55e;
    text-decoration: none;
    font-weight: 500;
}

.forgot-pass:hover {
    text-decoration: underline;
}

/* Submit Button */
.btn-submit {
    width: 100%;
    background: #22c55e;
    color: #000;
    border: none;
    padding: 15px;
    border-radius: 6px;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: background 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.btn-submit:hover {
    background: #1eb854;
}

/* Divider */
.divider {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 30px 0;
    color: #444;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.divider::before,
.divider::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.divider span {
    padding: 0 10px;
}

/* Footer Link */
.footer-text {
    text-align: center;
    color: #888;
    font-size: 0.9rem;
}

.footer-text a {
    color: #22c55e;
    text-decoration: none;
    font-weight: 600;
}

.footer-text a:hover {
    text-decoration: underline;
}

/* Responsive */
@media (max-width: 900px) {
    .login-hero {
        display: none;
    }

    .login-form-wrapper {
        max-width: 100%;
        border-left: none;
    }
}
