/* Authentication pages styling */

/* Import the decorative font for CertStudio heading */
@import url("https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@600&display=swap");

.auth-page {
    /* background-color: var(--gray-50); */
    /* min-height: 100vh; */
    /* display: flex; */
    /* flex-direction: column; */
    /* justify-content: center; */
    /* align-items: center; */
    /* padding: 2rem 1rem; */
}

.auth-page-container {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.app-title {
    font-family: "Cormorant Garamond", serif;
    font-size: 3rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    text-align: center;
    letter-spacing: 1px;
    text-shadow: 1px 1px 1px rgba(0, 0, 0, 0.1);
}

.auth-content {
    width: 100%;
    max-width: 400px;
}

/* Enhance the existing auth forms for the new layout */
.auth-container {
    padding: 0;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    background-color: #ffffff;
    width: 100%;
}

.auth-container .card {
    box-shadow: none;
    border-radius: 0;
}

.auth-container .card-header {
    padding: 1.5rem 1.5rem 0.5rem;
    border-bottom: none;
}

.auth-container .card-body {
    padding: 1.5rem 2rem;
}

.auth-container .form-group {
    margin-bottom: 1.25rem;
}

.auth-container .form-input {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--gray-300);
    border-radius: 4px;
    font-size: 1rem;
    outline: none;
    box-sizing: border-box;
}

.auth-container .form-input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 1px var(--primary-color);
}

.auth-container .button.primary,
input[type="submit"] {
    width: 100%;
    padding: 0.75rem;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s;
}

.auth-container .button.primary:hover {
    background-color: var(--primary-dark);
}

.auth-links {
    margin-top: 1rem;
    text-align: center;
}

.auth-links-container .auth-link {
    color: var(--primary-color);
    text-decoration: none;
    font-size: 0.875rem;
}

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

.auth-provider-button {
    width: 100%;
    padding: 0.75rem;
    background-color: #f8f9fa;
    border: 1px solid #e1e1e1;
    border-radius: 4px;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.2s;
    margin-top: 0.5rem;
}

.auth-provider-button:hover {
    background-color: #e9ecef;
}

/* Flash messages */
.flash-messages-container {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 400px;
    z-index: 1000;
}

.flash-message {
    padding: 0.6rem 0.8rem;
    border-radius: 4px;
    display: flex;
    align-items: center;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.flash-message.notice {
    background-color: #e3f2fd;
    color: #0d47a1;
}

.flash-message.alert,
.flash-message.error {
    background-color: #ffebee;
    color: #b71c1c;
}

.flash-icon {
    margin-right: 0.5rem;
    font-size: 0.9rem;
}

.flash-text {
    flex: 1;
}

.flash-close {
    background: none;
    border: none;
    cursor: pointer;
    color: inherit;
    opacity: 0.7;
    padding: 0;
    font-size: 0.9rem;
}

.flash-close:hover {
    opacity: 1;
}

/* Additional styling for auth pages */

/* Form errors section */
.form-errors {
    padding: 10px 15px;
    margin-bottom: 20px;
    background-color: #f8d7da;
    border: 1px solid #f5c6cb;
    border-radius: 4px;
    color: #721c24;
    font-size: 0.9rem;
}

.form-errors h4 {
    margin-top: 0;
    margin-bottom: 5px;
    font-size: 1rem;
}

.form-errors ul {
    margin-bottom: 0;
    padding-left: 20px;
}

/* Password related elements */
.password-hint {
    font-size: 0.8rem;
    color: #666;
    margin-bottom: 5px;
}

.password-form .form-input {
    margin-top: 5px;
}

/* Link styling */
.auth-link {
    color: var(--primary-color);
    text-decoration: none;
}

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

.card-header h2 {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 600;
    color: #333;
}

/* Ensure buttons are properly styled */
.button.primary {
    display: inline-block;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 4px;
    padding: 10px 15px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    width: 100%;
    transition: background-color 0.2s;
}

.button.primary:hover {
    background-color: var(--primary-dark);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--gray-700);
}

.form-input {
    width: 100%;
    padding: 10px;
    border: 1px solid var(--gray-300);
    border-radius: 4px;
    font-size: 1rem;
    box-sizing: border-box;
}

.form-actions {
    margin-top: 20px;
}

/* Style checkbox better */
.checkbox-group,
.form-group.checkbox-group {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    margin-top: 10px;
}

.checkbox-group input[type="checkbox"],
input[type="checkbox"] {
    margin-right: 8px;
    cursor: pointer;
}

/* Responsive adjustments */
@media (max-width: 480px) {
    .app-title {
        font-size: 2.5rem;
    }
}
