/* Auth Pages CSS - Login & Registration */

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: #333;
    background: #FFFFFF;
    min-height: 100vh;
}

.auth-page {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 20px;
}

.auth-container {
    width: 100%;
    max-width: 400px;
}

.auth-card {
    background: #F7F7F7;
    border-radius: 12px;
    border: 1px solid #E6E6E6;
    box-shadow: none;
    padding: 40px 32px;
    margin-bottom: 20px;
}

.auth-header {
    text-align: center;
    margin-bottom: 32px;
}

.auth-logo {
    height: 50px;
    width: auto;
    margin-bottom: 16px;
    object-fit: contain;
}

.auth-header h1 {
    font-size: 28px;
    font-weight: 700;
    color: #000000;
    margin-bottom: 8px;
}

.auth-header p {
    color: rgba(0, 0, 0, 0.6);
    font-size: 16px;
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-weight: 600;
    color: rgba(0, 0, 0, 0.87);
    font-size: 14px;
    display: none;
    /* Hide labels, placeholders are sufficient */
}

.form-group input {
    padding: 12px 16px;
    border: none;
    border-bottom: 1px solid #E6E6E6;
    border-radius: 0;
    font-size: 16px;
    transition: all 0.2s ease;
    background: transparent;
}

.form-group input:focus {
    outline: none;
    border-bottom-color: #000000;
    box-shadow: none;
}

.form-group input.readonly-input {
    background-color: rgba(0, 0, 0, 0.03);
    color: rgba(0, 0, 0, 0.6);
}

.form-help {
    color: rgba(0, 0, 0, 0.6);
    font-size: 12px;
}

.auth-button {
    padding: 14px 24px;
    background: #000000;
    color: #FFFFFF;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 8px;
}

.auth-button:hover {
    background: #333333;
    transform: none;
    box-shadow: none;
}

.auth-button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.spinner {
    width: 16px;
    height: 16px;
    border: 2px solid transparent;
    border-top: 2px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.auth-links {
    text-align: center;
    margin-top: 16px;
}

.auth-links a {
    color: #000000;
    text-decoration: none;
    font-size: 14px;
}

.auth-links a:hover {
    text-decoration: underline;
}

.auth-separator {
    color: #E6E6E6;
    margin: 0 8px;
    font-size: 14px;
}

.auth-links a:hover {
    text-decoration: underline;
}

.message-container {
    margin-top: 16px;
}

.message {
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 14px;
    margin-bottom: 8px;
}

.message-success {
    background: #F7F7F7;
    color: #2E7D32;
    border: 1px solid #E6E6E6;
}

.message-error {
    background: #FFF3E0;
    color: #E65100;
    border: 1px solid #FF9800;
}

.invite-notice {
    text-align: center;
    padding: 24px;
    background: #f0fff4;
    border: 2px solid #9ae6b4;
    border-radius: 8px;
    margin-bottom: 20px;
}

.invite-notice h3 {
    color: #22543d;
    margin-bottom: 12px;
}

.invite-notice p {
    color: #2f855a;
    margin-bottom: 16px;
}

.invite-info {
    background: #edf2f7;
    border-radius: 8px;
    padding: 16px;
    margin: 16px 0;
}

.invite-info h4 {
    color: #2d3748;
    margin-bottom: 12px;
    font-size: 16px;
}

.invite-details {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.detail-item {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
}

.detail-item strong {
    color: #4a5568;
}

.auth-footer {
    text-align: center;
    color: rgba(0, 0, 0, 0.6);
    font-size: 12px;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: #F7F7F7;
    border: 1px solid #E6E6E6;
    border-radius: 12px;
    width: 90%;
    max-width: 400px;
    max-height: 90vh;
    overflow-y: auto;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 24px 0 24px;
}

.modal-header h3 {
    color: #000000;
    font-size: 20px;
    margin: 0;
}

.close-button {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: rgba(0, 0, 0, 0.6);
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.close-button:hover {
    color: #000000;
}

.modal form {
    padding: 24px;
}

/* Responsive Design */
@media (max-width: 480px) {
    .auth-card {
        padding: 24px 20px;
        margin: 10px;
    }

    .auth-header h1 {
        font-size: 24px;
    }

    .modal-content {
        margin: 20px 10px;
        width: calc(100% - 20px);
    }
}

/* Animation */
.auth-card {
    animation: slideUp 0.4s ease;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}