/* Ghorror Login & Auth Styles */

/* Separator style (OR divider between Google and traditional forms) */
.ghorror-divider {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 20px 0;
    color: #6c757d;
}

.ghorror-divider::before,
.ghorror-divider::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid #dee2e6;
}

.ghorror-divider:not(:empty)::before {
    margin-right: .5em;
}

.ghorror-divider:not(:empty)::after {
    margin-left: .5em;
}

/* Spinner Overlay for AJAX processing */
.ghorror-auth-card {
    position: relative;
    transition: all 0.3s ease;
}

.ghorror-loading-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.7);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 10;
    border-radius: 0.375rem;
}

[data-theme="dark"] .ghorror-loading-overlay,
.dark-theme .ghorror-loading-overlay {
    background: rgba(33, 37, 41, 0.7);
}

.ghorror-loading-overlay .spinner-border {
    width: 3rem;
    height: 3rem;
}

/* Form toggle transitions */
.ghorror-form-section {
    display: none;
}

.ghorror-form-section.active {
    display: block;
    animation: fadeIn 0.4s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Profile photo circle upload preview */
.ghorror-avatar-wrapper {
    position: relative;
    width: 120px;
    height: 120px;
    margin: 0 auto 15px auto;
}

.ghorror-avatar-preview {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #0d6efd;
    background-color: #f8f9fa;
}

.ghorror-avatar-upload-btn {
    position: absolute;
    bottom: 0;
    right: 0;
    background: #0d6efd;
    color: #fff;
    border: none;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
    transition: background-color 0.2s;
}

.ghorror-avatar-upload-btn:hover {
    background: #0b5ed7;
}

.ghorror-avatar-upload-btn input[type="file"] {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

/* Google Sign-in Center Container */
.ghorror-google-btn-wrapper {
    display: flex;
    justify-content: center;
    margin-bottom: 15px;
}
