/* public/css/login-page.css */

/* Apply theme variables from base.css if body doesn't get them automatically */
.login-page-body {
    background-color: var(--app-bg-color);
    color: var(--primary-text-color);
    font-family: var(--app-font-family);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    margin: 0;
    padding: 1rem; /* Add some padding for smaller screens */
    box-sizing: border-box;
}

.auth-container {
    background-color: var(--content-bg-color);
    padding: 2rem 2.5rem;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15), 0 0 30px rgba(var(--gradient-color-1-rgb, 88, 101, 242), 0.1);
    width: 100%;
    max-width: 420px; /* Max width for the auth box */
    text-align: center;
    border: 1px solid var(--border-color, #333);
}

.auth-header {
    margin-bottom: 1.5rem;
}

.auth-app-name-link {
    text-decoration: none;
}

.auth-header h1 { /* For "ConceptMesh" */
    font-size: clamp(1.8rem, 5vw, 2.2rem);
    font-weight: 600;
    color: var(--primary-text-color);
    margin: 0 0 0.5rem 0;
    background: linear-gradient(90deg, var(--gradient-color-1), var(--gradient-color-2), var(--gradient-color-1));
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: gradient-text-flow 5s linear infinite; /* Assuming you have this animation defined in base.css or animations.css */
}

.auth-header p#auth-form-title {
    font-size: 1.1rem;
    color: var(--secondary-text-color);
    margin: 0;
}

.auth-message {
    padding: 0.75rem 1rem;
    margin-bottom: 1rem;
    border-radius: 6px;
    font-size: 0.9rem;
    text-align: left;
    display: none; /* Hidden by default, shown by JS */
}

.auth-message.success {
    background-color: rgba(var(--success-color-rgb, 76, 175, 80), 0.15);
    color: var(--success-color, #4CAF50);
    border: 1px solid rgba(var(--success-color-rgb, 76, 175, 80), 0.3);
}

.auth-message.error {
    background-color: rgba(var(--error-color-rgb, 244, 67, 54), 0.15);
    color: var(--error-color, #f44336);
    border: 1px solid rgba(var(--error-color-rgb, 244, 67, 54), 0.3);
}

.auth-form .form-group {
    margin-bottom: 1.25rem;
    text-align: left;
}

.auth-form label {
    display: block;
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 0.35rem;
    color: var(--secondary-text-color);
}

.auth-form input[type="email"],
.auth-form input[type="password"] {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid var(--input-border-color, #444);
    border-radius: 6px;
    background-color: var(--input-bg-color, #2c2c3e);
    color: var(--primary-text-color);
    font-size: 1rem;
    box-sizing: border-box;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.auth-form input[type="email"]:focus,
.auth-form input[type="password"]:focus {
    outline: none;
    border-color: var(--gradient-color-2);
    box-shadow: 0 0 0 2px rgba(var(--gradient-color-2-rgb), 0.2);
}

.auth-form .password-hint {
    font-size: 0.8rem;
    color: var(--tertiary-text-color, #888);
    display: block;
    margin-top: 0.25rem;
}

.auth-button {
    width: 100%;
    padding: 0.8rem 1rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.1s ease;
    font-family: var(--app-font-family);
    letter-spacing: 0.5px;
}

.auth-button.primary {
    background: linear-gradient(90deg, var(--gradient-color-1), var(--gradient-color-2));
    color: white;
    box-shadow: 0 2px 8px rgba(var(--gradient-color-1-rgb), 0.3);
}
.auth-button.primary:hover {
    filter: brightness(110%);
}
.auth-button.primary:active {
    transform: translateY(1px);
    filter: brightness(100%);
}

.form-toggle-text {
    margin-top: 1.5rem;
    font-size: 0.9rem;
    color: var(--secondary-text-color);
}

.form-toggle-text a {
    color: var(--accent-color, var(--gradient-color-2));
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
}
.form-toggle-text a:hover {
    text-decoration: underline;
}

/* Styles for social login (if you add them) */
.social-login-divider {
    margin: 1.5rem 0;
    text-align: center;
    position: relative;
    color: var(--secondary-text-color);
    font-size: 0.9rem;
}
.social-login-divider span {
    background-color: var(--content-bg-color);
    padding: 0 0.75rem;
    position: relative;
    z-index: 1;
}
.social-login-divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background-color: var(--border-color);
    z-index: 0;
}

.auth-button.social {
    background-color: var(--primary-bg);
    color: var(--primary-text);
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 0.75rem;
}
.auth-button.social:hover {
    background-color: var(--glass-bg);
}
.social-login-buttons .social-icon {
    width: 20px;
    height: 20px;
}


/* Ensure gradient animation is defined if not already in base.css/animations.css */
@keyframes gradient-text-flow {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}