/* src/assets/css/auth.css */

.auth-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 100vh;
    width: 100%;
}

/* Left-side branding panel */
.auth-branding-panel {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary-color));
    color: var(--background-white);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 4rem;
}
.auth-branding-panel .branding-content { margin: auto 0; }
.auth-branding-panel .logo { font-size: 2rem; font-weight: 700; margin-bottom: 2rem; }
.auth-branding-panel h1 {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    line-height: 1.2;
    margin-bottom: 1.5rem;
}
.auth-branding-panel p {
    font-size: 1.1rem;
    line-height: 1.7;
    max-width: 400px;
    opacity: 0.8;
}
.auth-branding-panel .copyright { font-size: 0.9rem; opacity: 0.6; }

/* Right-side form panel */
.auth-form-panel {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 2rem;
    background: var(--background-white);
    gap: 1.5rem;
}
.auth-card {
    width: 100%;
    max-width: 480px;
    text-align: left;
    padding: 0;
    box-shadow: none;
}
.auth-card .form-header { margin-bottom: 2.5rem; text-align: left; }
.auth-card .form-header h3 {
    font-size: 2rem;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

/* Form Styles */
.form-row { display: flex; gap: 1rem; }
.form-row .form-group { flex: 1; }
.form-group { margin-bottom: 1.5rem; }
.form-group label {
    display: block; margin-bottom: 0.5rem;
    font-weight: 600; color: var(--text-medium);
    font-size: 0.9rem;
}
.form-group input,
.form-group select {
    width: 100%; padding: 14px 15px;
    border: 1px solid var(--border-color);
    border-radius: 8px; font-size: 1rem;
    font-family: var(--font-main);
    transition: all 0.3s ease;
    background-color: var(--background-white);
}
.form-group input:focus,
.form-group select:focus {
    outline: none; border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(32, 178, 170, 0.2);
}

.error-message {
    color: #e74c3c; font-size: 0.9rem; text-align: left;
    margin-bottom: 1rem; min-height: 1.2em; display: none;
}
.error-message.show { display: block; }

.auth-card .btn { width: 100%; padding: 15px; font-size: 1.1rem; margin-top: 1rem; }

.auth-card .extra-links {
    margin-top: 2rem; display: flex;
    justify-content: space-between; font-size: 0.9rem;
}
.auth-card .extra-links a { color: var(--text-medium); font-weight: 500; transition: color 0.3s; }
.auth-card .extra-links a:hover { color: var(--primary-color); }

/* Switch link */
.auth-switch-link {
    text-align: center; margin-top: 2rem; padding-top: 1.5rem;
    border-top: 1px solid var(--border-color);
}
.auth-switch-link p { color: var(--text-medium); }
.auth-switch-link a { color: var(--primary-color); font-weight: 600; }

/* Demo Card */
.demo-card {
    width: 100%; max-width: 480px; background-color: #f8f9fa;
    border: 1px solid var(--border-color); border-radius: 10px;
    padding: 1.5rem; font-size: 0.9rem; color: var(--text-medium);
}
.demo-card h4 { text-align: center; margin-bottom: 1rem; font-weight: 600; color: var(--text-dark); }
.demo-card p { text-align: center; margin-bottom: 1rem; }
.demo-card ul { list-style: none; padding: 0; }
.demo-card li { margin-bottom: 0.5rem; display: flex; justify-content: space-between; align-items: center; }
.demo-card code { background-color: #e9ecef; padding: 3px 8px; border-radius: 4px; font-family: monospace; color: #c7254e; }

/* Responsive */
@media (max-width: 992px) {
    .auth-layout { grid-template-columns: 1fr; }
    .auth-branding-panel { padding: 3rem 2rem; min-height: 300px; text-align: center; justify-content: center; }
    .auth-branding-panel .copyright { display: none; }
    .auth-form-panel { padding: 3rem 2rem; }
    .auth-card, .demo-card { max-width: none; }
}
@media (max-width: 768px) {
    .form-row { flex-direction: column; gap: 0; }
}
/* --- BACK TO HOME BUTTON (New Addition) --- */
.back-home-btn {
    position: absolute;
    top: 2rem;
    left: 2rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--background-white); /* White text kasi nasa colored background */
    font-weight: 500;
    text-decoration: none;
    padding: 10px 20px;
    border-radius: 50px;
    background: rgba(255, 255, 255, 0.2); /* Glass effect */
    backdrop-filter: blur(5px);
    transition: all 0.3s ease;
    z-index: 10;
    font-size: 0.9rem;
}

.back-home-btn:hover {
    background: rgba(255, 255, 255, 0.4);
    transform: translateX(-5px); /* Slide effect */
    color: white;
}

.back-home-btn i { font-size: 1rem; }

/* Responsive adjustments */
@media (max-width: 992px) {
    /* Pag mobile, nasa taas na siya ng branding panel */
    .back-home-btn {
        top: 1.5rem;
        left: 1.5rem;
    }
}