:root {
    --app-font-sans: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

html, body {
    font-family: var(--app-font-sans);
}

.hub-page,
.cal-page {
    font-family: var(--app-font-sans);
}

.auth-page {
    background: #ffffff;
    min-height: 100vh;
}

.login-container {
    margin: 2rem auto;
}

.auth-container-sm {
    max-width: 400px;
}

.auth-container-md {
    max-width: 500px;
}

.auth-container-lg {
    max-width: 1080px;
}

.auth-container-loose {
    margin-top: 5rem;
    margin-bottom: 5rem;
}

.login-card {
    background: rgba(255, 255, 255, 0.95);
    border: none;
    border-radius: 15px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
}

.login-header {
    background: linear-gradient(to right, #2d8659, #2d8659);
    color: #ffffff;
    border: none;
    border-radius: 15px 15px 0 0 !important;
    padding: 1rem 1.5rem;
    text-align: center;
    font-size: 1.3rem;
    font-weight: 600;
}

.form-control {
    border: 2px solid #e9ecef;
    border-radius: 10px;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-control:focus {
    border-color: #2d8659;
    box-shadow: 0 0 0 0.2rem rgba(45, 134, 89, 0.25);
}

.btn-login {
    background: linear-gradient(to right, #2d8659, #2d8659);
    border: none;
    border-radius: 10px;
    padding: 0.75rem 2rem;
    font-size: 1.1rem;
    font-weight: 600;
    color: white;
    width: 100%;
    transition: all 0.3s ease;
}

.btn-login:hover {
    background: linear-gradient(to right, #1e5f45, #2d8659);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(45, 134, 89, 0.3);
}

.form-group {
    margin-bottom: 1rem;
}

.checkbox label {
    color: #495057;
    font-weight: 500;
}

.checkbox {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.login-links {
    text-align: center;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid #e9ecef;
}

.login-links a {
    color: #2d8659;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.login-links a:hover {
    color: #1e5f45;
    text-decoration: underline;
}

.required-field {
    color: #dc3545;
    margin-left: 0.25rem;
}

.optional-label {
    color: #6c757d;
    font-size: 0.85rem;
    font-weight: normal;
    margin-left: 0.5rem;
}

.info-text {
    text-align: center;
    margin-bottom: 1.5rem;
    padding: 0.75rem;
    background: #f8f9fa;
    border-radius: 10px;
    color: #495057;
    font-size: 0.9rem;
    line-height: 1.6;
}

.email-info {
    font-size: 0.85rem;
    color: #6c757d;
    margin-top: 0.25rem;
    padding: 0.4rem 0.5rem;
    background-color: #f8f9fa;
    border-radius: 5px;
    border-left: 3px solid #2d8659;
    line-height: 1.4;
}

.email-domain-select {
    border-left: 1px solid #ced4da;
    padding: 0 2rem 0 0.75rem;
    font-size: 1rem;
    transition: all 0.3s ease;
    background-color: white;
    cursor: pointer;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='4' height='5' viewBox='0 0 4 5'%3e%3cpath fill='%23343a40' d='M2 0L0 2h4zm0 5L0 3h4z'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 0.5rem center;
    background-size: 8px 10px;
}

.email-domain-select:focus {
    border-color: #2d8659;
    box-shadow: 0 0 0 0.2rem rgba(45, 134, 89, 0.25);
    outline: none;
    border-left-color: #2d8659;
}

.email-domain-custom {
    display: none;
}

.email-domain-custom.show {
    display: block;
}

.input-group .form-control:focus,
.input-group .email-domain-select:focus,
.input-group .email-domain-custom:focus {
    border-color: #2d8659;
    box-shadow: 0 0 0 0.2rem rgba(45, 134, 89, 0.25);
    z-index: 3;
}

.input-group-text {
    background-color: #f8f9fa;
    border-color: #e9ecef;
    color: #2d8659;
    font-weight: 600;
}

.form-control:disabled {
    background-color: #e9ecef;
    cursor: not-allowed;
}

.auth-label {
    display: block;
    margin-bottom: 0.5rem;
    color: #495057;
    font-weight: 500;
}

.auth-links-row {
    text-align: center;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid #e9ecef;
}

.auth-links-row a {
    color: #2d8659;
    text-decoration: none;
    font-weight: 500;
}

.auth-links-row a:hover {
    color: #1e5f45;
    text-decoration: underline;
}

.forgot-password-page .nav-tabs {
    border-bottom: 2px solid #e9ecef;
}

.forgot-password-page .nav-tabs .nav-link {
    color: #495057;
    border: none;
    border-bottom: 2px solid transparent;
    padding: 0.75rem 1rem;
    font-weight: 500;
    transition: all 0.3s ease;
    cursor: pointer;
}

.forgot-password-page .nav-tabs .nav-link:hover {
    border-color: #2d8659;
    color: #2d8659;
}

.forgot-password-page .nav-tabs .nav-link.active {
    color: #2d8659;
    background-color: transparent;
    border-color: #2d8659;
    border-bottom-color: #2d8659;
    font-weight: 600;
}

.forgot-password-page .tab-content {
    margin-top: 1rem;
}

.forgot-password-page .spinner-border-sm {
    width: 1rem;
    height: 1rem;
    border-width: 0.15em;
}

.forgot-password-page .btn-login:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none !important;
}

