/* Common authentication form styles */
.auth-container {
    /*max-width: 400px;*/
    margin: 0 auto;
    padding: 1rem;
}

.auth-title {
    color: var(--cctc-color);
    margin-bottom: 1.5rem;
    font-size: 1.75rem;
    font-weight: 600;
}

.auth-subtitle {
    color: var(--cctc-color);
    margin-bottom: 1rem;
    font-size: 1.25rem;
    font-weight: 500;
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.auth-field {
    display: flex;
    flex-direction: column;
}

.auth-label {
    color: var(--cctc-color);
    font-size: 1rem;
    margin-bottom: 0.5rem;
}

.auth-input {
    background-color: var(--cctc-background-color);
    border: var(--cctc-border-width) var(--cctc-border-style) var(--cctc-border-color);
    border-radius: var(--cctc-border-radius);
    color: var(--cctc-color);
    padding: 0.75rem;
    font-size: 1rem;
    min-height: 2.5rem;
    transition: border-color 0.2s ease;
}

.auth-input:focus {
    outline: none;
    border-color: var(--cctc-highlight-color);
    box-shadow: 0 0 0 2px rgba(255, 165, 0, 0.2);
}

.auth-input:disabled {
    background-color: var(--web-background-color);
    color: var(--web-inactive-icon-color);
    cursor: not-allowed;
}

.auth-checkbox-field {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.auth-checkbox {
    accent-color: var(--cctc-highlight-color);
}

.auth-button {
    background-color: var(--cctc-highlight-color);
    color: var(--cctc-background-color);
    border: none;
    border-radius: var(--cctc-border-radius);
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    font-weight: 600;
    min-height: 2.5rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.auth-button:hover {
    background-color: var(--cctc-highlight-background-color);
}

.auth-button-delete {
    background-color: var(--web-background-color);
    border: 1px solid red;
}

.auth-button-delete:hover {
    background-color: red;
}


.auth-button-delete a {
    color: red;
    text-decoration: none;
}

.auth-button-delete:hover > a {
    color: var(--web-color) !important;
}

.auth-button:disabled {
    background-color: var(--cctc-input-disabled-background-color);
    color: var(--cctc-input-disabled-color);
    cursor: not-allowed;
    transform: none;
}

.auth-links {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-top: 1rem;
}

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

.auth-link:hover {
    color: var(--web-color);
    text-decoration: none;
}

.auth-separator {
    margin: 1rem 0;
    border: none;
    border-top: 1px solid var(--cctc-border-color);
}

.auth-validation-summary {
    background-color: rgba(220, 53, 69, 0.1);
    border: 1px solid rgba(220, 53, 69, 0.3);
    border-radius: var(--cctc-border-radius);
    color: #dc3545;
    padding: 0.75rem;
    margin-bottom: 1rem;
}

.auth-validation-message {
    color: #dc3545;
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

.auth-status-message {
    border-radius: var(--cctc-border-radius);
    padding: 0.75rem;
    margin-bottom: 1rem;
    font-weight: 500;
}

.auth-status-success {
    background-color: rgba(40, 167, 69, 0.1);
    border: 1px solid rgba(40, 167, 69, 0.3);
    color: #28a745;
}

.auth-status-error {
    background-color: rgba(220, 53, 69, 0.1);
    border: 1px solid rgba(220, 53, 69, 0.3);
    color: #dc3545;
}

.auth-input-group {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.auth-input-group .auth-input {
    flex: 1;
}

.auth-verified-badge {
    color: #28a745;
    font-weight: bold;
    font-size: 1.25rem;
}

.auth-link-button {
    background: none;
    border: none;
    color: var(--web-link-color);
    cursor: pointer;
    font-size: 1rem;
    text-decoration: none;
    
    padding: 0;
}

.auth-link-button:hover {
    color: var(--web-color);
}

.auth-two-column {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.auth-external-section {
    padding-top: 1rem;
}

.auth-subtitle > a {
    text-decoration: none;
}

@media (min-width: 768px) {
    .auth-container {
        /*max-width: 1200px;*/
        padding: 2rem;
    }

    .auth-two-column {
        flex-direction: row;
        gap: 4rem;
        align-items: flex-start;
    }

    .auth-main-section {
        flex: 1;
        max-width: 400px;
    }

    .auth-external-section {
        flex: 1;
        max-width: 400px;
        padding-top: 0;
    }
}