/* public/style.css */
@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;500;700&display=swap');

:root {
    --primary-color: #0056b3;
    --primary-dark-color: #004085;
    --background-color: #f0f2f5;
    --surface-color: #ffffff;
    --text-color: #333333;
    --text-light-color: #6c757d;
    --border-color: #dee2e6;
    --shadow-color: rgba(0, 0, 0, 0.08);
    --error-color: #dc3545;
}

body {
    font-family: 'Roboto', sans-serif;
    margin: 0;
    background-color: var(--background-color);
    color: var(--text-color);
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 20px;
}

.hidden {
    display: none !important;
}

.page-container {
    width: 100%;
}

/* --- Auth Screen Styles --- */
#auth-container {
    display: flex;
    width: 100%;
    max-width: 900px;
    margin: auto;
    background: var(--surface-color);
    border-radius: 12px;
    box-shadow: 0 5px 30px var(--shadow-color);
    overflow: hidden;
}

.brand-panel {
    background: linear-gradient(135deg, #007bff, var(--primary-color));
    color: white;
    width: 45%;
    padding: 60px 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}
.brand-panel img {
    width: 120px;
    margin-bottom: 1.5rem;
}
.brand-panel h2 {
    font-size: 24px;
    font-weight: 500;
    margin: 0 0 10px 0;
}
.brand-panel p {
    font-size: 16px;
    opacity: 0.9;
}

.form-panel {
    width: 55%;
    padding: 50px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

#form-title {
    font-size: 28px;
    font-weight: 500;
    color: var(--primary-dark-color);
    margin: 0 0 10px 0;
}
#form-subtitle {
    color: var(--text-light-color);
    margin-bottom: 2rem;
}

.input-group {
    margin-bottom: 1.25rem;
}
.input-group label {
    display: block;
    font-weight: 500;
    margin-bottom: 8px;
    font-size: 14px;
}
.input-group input {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 16px;
    box-sizing: border-box;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.input-group input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0, 86, 179, 0.1);
}

/* --- Intl Tel Input Styles --- */
.iti { 
    width: 100%; 
}
.iti__country-list {
    z-index: 10;
}

.error {
    color: var(--error-color);
    font-size: 14px;
    margin-top: -10px;
    margin-bottom: 15px;
    min-height: 1.2em;
}

#recaptcha-container {
    margin-top: 1rem;
}

#submit-btn {
    width: 100%;
    padding: 14px;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 500;
    transition: background-color 0.2s;
}
#submit-btn:hover {
    background-color: var(--primary-dark-color);
}
#submit-btn:disabled {
    background-color: #a0a0a0;
    cursor: not-allowed;
}


.toggle-link {
    text-align: center;
    margin-top: 1.5rem;
    color: var(--text-light-color);
}
.toggle-link a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
}
.toggle-link a:hover {
    text-decoration: underline;
}

/* --- Dashboard Screen Styles --- */
#dashboard-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: var(--surface-color);
    padding: 15px 30px;
    border-radius: 12px;
    box-shadow: 0 2px 10px var(--shadow-color);
    margin-bottom: 2rem;
}

.dashboard-logo {
    height: 40px;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.user-info span {
    font-weight: 500;
}

.logout-button {
    background-color: #dc3545;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 500;
    transition: background-color 0.2s;
}
.logout-button:hover {
    background-color: #c82333;
}

.dashboard-content {
    padding: 0 10px;
}
.dashboard-content h2 {
    font-size: 28px;
    font-weight: 400;
    margin-bottom: 0.5rem;
}
.dashboard-content p {
    color: var(--text-light-color);
    margin-bottom: 2rem;
}

.app-grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
}
.app-card {
    background-color: var(--surface-color);
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 2px 10px var(--shadow-color);
    text-decoration: none;
    color: var(--text-color);
    transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
    display: flex;
    flex-direction: column;
}
.app-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.12);
}
.app-card.disabled {
    background-color: #f8f9fa;
    color: #adb5bd;
    cursor: not-allowed;
    opacity: 0.7;
}
.app-card.disabled:hover {
    transform: none;
}

