/**
 * FEIDE WordPress Auth - Login Page Styles
 */

/* FEIDE login wrapper */
#feide-login-wrapper {
    margin-bottom: 24px;
}

/* Skillestrek mellom FEIDE og WordPress innlogging */
.feide-separator {
    position: relative;
    text-align: center;
    margin: 20px 0 0 0;
    overflow: hidden;
}

.feide-separator::before {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    top: 50%;
    height: 1px;
    background: linear-gradient(to right, transparent 0%, #dcdcde 10%, #dcdcde 90%, transparent 100%);
}

.feide-separator span {
    position: relative;
    background: transparent;
    padding: 0 16px;
    color: #646970;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.3px;
    text-transform: lowercase;
}

/* FEIDE innloggingsknapp */
.feide-login-button {
    margin: 0;
}

.feide-button {
    width: 100%;
    height: auto;
    padding: 12px 16px !important;
    background: #2271b1 !important;
    border: none !important;
    border-radius: 4px !important;
    text-shadow: none !important;
    box-shadow: 0 2px 4px rgba(34, 113, 177, 0.2), 0 1px 2px rgba(0, 0, 0, 0.1) !important;
    font-size: 15px !important;
    font-weight: 600 !important;
    letter-spacing: 0.3px;
    color: #fff !important;
    text-decoration: none !important;
    display: flex !important;
    align-items: center;
    justify-content: center;
    gap: 10px;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.feide-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0) 100%);
    opacity: 0;
    transition: opacity 0.2s ease;
}

.feide-button:hover::before,
.feide-button:focus::before {
    opacity: 1;
}

.feide-button:hover,
.feide-button:focus {
    background: #135e96 !important;
    box-shadow: 0 4px 8px rgba(19, 94, 150, 0.3), 0 2px 4px rgba(0, 0, 0, 0.15) !important;
    transform: translateY(-1px);
    color: #fff !important;
}

.feide-button:active {
    transform: translateY(0);
    box-shadow: 0 1px 2px rgba(34, 113, 177, 0.2), 0 1px 2px rgba(0, 0, 0, 0.1) !important;
}

.feide-button:focus {
    outline: 2px solid #2271b1;
    outline-offset: 2px;
}

.feide-icon {
    flex-shrink: 0;
    opacity: 0.95;
    transition: transform 0.2s ease;
}

.feide-button:hover .feide-icon {
    transform: scale(1.05);
    opacity: 1;
}

.feide-button span {
    position: relative;
    z-index: 1;
}

/* Responsiv design */
@media (max-width: 400px) {
    .feide-button {
        font-size: 14px !important;
        padding: 10px 12px !important;
    }

    .feide-icon {
        width: 18px;
        height: 18px;
    }

    .feide-separator span {
        font-size: 12px;
    }
}

/* Tilgjengelighet - høykontrast modus */
@media (prefers-contrast: high) {
    .feide-button {
        border: 2px solid #000 !important;
    }

    .feide-separator::before {
        background: #000;
    }
}

/* Mørk modus støtte */
@media (prefers-color-scheme: dark) {
    .feide-separator span {
        background: transparent;
    }
}
