/* Authentication styles */

.auth-button {
    padding: 8px 18px;
    background-color: #31928F;
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 13px;
    font-family: 'Gill Sans', 'Gill Sans MT', Calibri, 'Trebuchet MS', sans-serif;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    cursor: pointer;
    white-space: nowrap;
    transition: background-color 0.2s ease, transform 0.2s ease;
}

.auth-button:hover {
    background-color: #267975;
    transform: scale(1.03);
}

.auth-button.go-to-app {
    background-color: #DBAA6F;
}

.auth-button.go-to-app:hover {
    background-color: #c8954f;
}

@media screen and (max-width: 845px) {
    .auth-button {
        display: none;
    }
}

.user-menu {
    position: relative;
}

.user-menu-dropdown {
    position: absolute;
    right: 0;
    top: 100%;
    background: white;
    border: 1px solid #ddd;
    border-radius: 5px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    min-width: 150px;
    display: none;
    margin-top: 10px;
    z-index: 200;
}

.user-menu-dropdown.active {
    display: block;
}

.user-menu-dropdown a {
    display: block;
    padding: 12px 16px;
    color: #333;
    text-decoration: none;
    border-bottom: 1px solid #eee;
    transition: background 0.2s ease;
}

.user-menu-dropdown a:last-child {
    border-bottom: none;
}

.user-menu-dropdown a:hover {
    background: #f5f5f5;
}

.user-email {
    padding: 12px 16px;
    color: #666;
    font-size: 12px;
    border-bottom: 1px solid #eee;
}

/* Login Modal */
.auth-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

.auth-modal.active {
    display: flex;
}

.auth-modal-content {
    position: relative;
    background: white;
    padding: 40px;
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.18);
    width: 90%;
    max-width: 380px;
    animation: slideIn 0.3s ease;
    font-family: 'Gill Sans', 'Gill Sans MT', Calibri, 'Trebuchet MS', sans-serif;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.auth-modal-header {
    margin-bottom: 30px;
}

.auth-modal h2 {
    margin: 0;
    color: #31928F;
    font-family: 'Gill Sans', 'Gill Sans MT', Calibri, 'Trebuchet MS', sans-serif;
    font-size: 24px;
    font-weight: 700;
}

.auth-close {
    position: absolute;
    top: 14px;
    right: 14px;
    background: none;
    border: none;
    font-size: 22px;
    cursor: pointer;
    color: #999;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.auth-close:hover {
    color: #31928F;
    background-color: rgba(49, 146, 143, 0.08);
}

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

.auth-modal .form-group label {
    display: block;
    margin-bottom: 8px;
    font-family: 'Gill Sans', 'Gill Sans MT', Calibri, 'Trebuchet MS', sans-serif;
    color: #444;
    font-weight: 600;
    font-size: 14px;
}

.auth-modal .form-group input {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-family: 'Gill Sans', 'Gill Sans MT', Calibri, 'Trebuchet MS', sans-serif;
    font-size: 14px;
    transition: border-color 0.3s ease;
    box-sizing: border-box;
}

.auth-modal .form-group input:focus {
    outline: none;
    border-color: #31928F;
    box-shadow: 0 0 0 3px rgba(49, 146, 143, 0.12);
}

.auth-submit {
    width: 100%;
    padding: 12px;
    background-color: #31928F;
    color: white;
    border: none;
    border-radius: 8px;
    font-family: 'Gill Sans', 'Gill Sans MT', Calibri, 'Trebuchet MS', sans-serif;
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.2s ease;
    margin-top: 10px;
}

.auth-submit:hover {
    background-color: #267975;
    transform: translateY(-1px);
}

.auth-error {
    color: #c0392b;
    font-family: 'Gill Sans', 'Gill Sans MT', Calibri, 'Trebuchet MS', sans-serif;
    font-size: 13px;
    margin-top: 15px;
    padding: 10px 12px;
    background: #fdf0ef;
    border-left: 3px solid #c0392b;
    border-radius: 6px;
}

.auth-loading {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Responsive */
@media (max-width: 768px) {
    .auth-button {
        padding: 8px 15px;
        font-size: 12px;
        right: 15px;
    }

    .auth-modal-content {
        width: 95%;
        padding: 30px 20px;
    }

    .auth-modal h2 {
        font-size: 20px;
    }
}
