/* Login and Register Page Styles */

/* 1. Background and Layout */
body.login-page {
    background-color: #000000 !important;
    background-image: none !important;
    margin: 0;
    padding: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* 2. Remove Snow and other elements */
body.login-page .snow-container,
body.login-page .floating-btn {
    display: none !important;
}

/* Reset Page Container for Login Page */
body.login-page .page-container {
    display: flex !important;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    width: 100%;
    padding: 0;
    margin: 0;
    background: transparent;
}

/* Hide original title and sub-title in Login Page */
body.login-page .page-title-main,
body.login-page .page-title-sub {
    display: none !important;
}

/* Reset Card for Login Page */
body.login-page .card {
    background: transparent;
    box-shadow: none;
    padding: 0;
    margin: 0;
    width: 100%;
    border: none;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* 3. Login Wrapper */
.login-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    max-width: 100%;
    z-index: 10;
}

/* 4. Logo */
.brand-logo {
    width: auto;
    height: auto;
    max-width: 105px; /* Reduced to 40% of original 200px */
    margin-bottom: 20px;
    object-fit: contain;
}

.auth-title {
    color: #ffffff;
    font-size: 32px;
    font-weight: 700;
    margin: 0 0 28px 0;
    text-align: center;
}

/* 5. Form Container */
.auth-form-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
    width: 320px;
}

/* 6. Inputs */
.auth-input {
    width: 320px !important;
    height: 48px !important;
    border-radius: 8px !important;
    border: 1px solid #333333 !important;
    background-color: #000000 !important;
    color: #ffffff !important;
    padding: 0 16px !important;
    font-size: 14px !important;
    box-sizing: border-box !important;
    outline: none !important;
    transition: border-color 0.2s, box-shadow 0.2s !important;
}

.auth-input:focus {
    border-color: #2adb5c !important;
    box-shadow: 0 0 0 1px #2adb5c !important; /* Optional: adds a glow effect matching the border */
}

.auth-input::placeholder {
    color: #666666;
}

/* 7. Buttons */
.auth-btn {
    width: 320px;
    height: 52px;
    border-radius: 8px; /* Assuming match inputs or slightly larger? User said height 52px. */
    background-color: #2adb5c;
    color: #ffffff;
    border: none;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.2s, background-color 0.2s;
}

.auth-btn:hover,
.auth-btn:focus {
    background-color: #1e9e43; /* Darker green on hover/focus */
}

.auth-btn:disabled {
    opacity: 0.6;
    background-color: #2adb5c; /* Make sure disabled state has same color as login button */
    cursor: not-allowed;
}

.auth-btn.login-btn:disabled {
    opacity: 0.6;
    background-color: #2adb5c; 
}

/* 8. Remember Me / Links Row */
.form-row {
    width: 320px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 14px;
}

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

.remember-me input[type="checkbox"] {
    accent-color: #2adb5c;
    width: 16px;
    height: 16px;
    cursor: pointer;
}

.auth-link {
    color: #2adb5c;
    text-decoration: none;
    cursor: pointer;
}

.auth-link:hover {
    text-decoration: underline;
}

/* 9. Privacy Policy */
.privacy-row {
    width: 320px;
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 12px;
    color: #cccccc;
    line-height: 1.5;
}

.privacy-row input[type="checkbox"] {
    margin-top: 2px;
    accent-color: #2adb5c;
}

/* Error Message */
.auth-error {
    width: 320px;
    color: #ef4444;
    font-size: 12px;
    text-align: center;
    margin-bottom: 12px; /* Ensure margin so it's not overlapped */
    padding: 8px;
    background: rgba(239, 68, 68, 0.1); /* Light red background for visibility */
    border: 1px solid rgba(239, 68, 68, 0.2);
    border-radius: 4px;
    box-sizing: border-box;
    position: relative; /* Ensure it's in the flow */
    z-index: 20;
}

.auth-success {
    width: 320px;
    color: #2adb5c;
    font-size: 12px;
    text-align: center;
    margin-bottom: 12px;
    padding: 8px;
    background: rgba(42, 219, 92, 0.1);
    border: 1px solid rgba(42, 219, 92, 0.2);
    border-radius: 4px;
    box-sizing: border-box;
    position: relative;
    z-index: 20;
}

/* Utility to hide/show views */
.hidden-view {
    display: none !important;
}
