/*
Login Common Styles
Shared styles for all login pages
*/

.login-container {
    min-height: 100vh;
    position: relative;
    overflow: hidden;
}

.login-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 1000"><defs><radialGradient id="a" cx="50%" cy="50%" r="50%"><stop offset="0%" stop-color="rgba(255,255,255,0.1)"/><stop offset="100%" stop-color="rgba(255,255,255,0)"/></radialGradient></defs><circle cx="200" cy="200" r="100" fill="url(%23a)"/><circle cx="800" cy="300" r="150" fill="url(%23a)"/><circle cx="400" cy="700" r="120" fill="url(%23a)"/><circle cx="900" cy="800" r="80" fill="url(%23a)"/></svg>') no-repeat center center;
    background-size: cover;
    opacity: 0.3;
    pointer-events: none;
}

.login-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    position: relative;
    z-index: 2;
}

.login-header {
    text-align: center;
    margin-bottom: 30px;
}

.login-logo {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 20px;
}

.login-logo img {
    max-height: 80px;
    width: auto;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.1));
    transition: transform 0.3s ease;
}

.login-logo img:hover {
    transform: scale(1.05);
}

.login-title {
    font-size: 2rem;
    font-weight: 700;
    color: #2d3748;
    margin-bottom: 10px;
}

.login-subtitle {
    color: #718096;
    font-size: 1rem;
}

/* Poruke o grešci (pogrešna lozinka, captcha, itd.) – bez zavisnosti od Bootstrap-a */
.login-alert {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.875rem 1rem;
    border-radius: 12px;
    margin-bottom: 1.25rem;
    font-size: 0.9375rem;
    line-height: 1.45;
    border: 1px solid transparent;
}

.login-alert--danger {
    color: #9b1c1c;
    background: linear-gradient(135deg, #fef2f2 0%, #fee2e2 100%);
    border-color: #fecaca;
    box-shadow: 0 2px 8px rgba(185, 28, 28, 0.08);
}

.login-alert__icon {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.5rem;
    height: 1.5rem;
    border-radius: 50%;
    background: #dc2626;
    color: #fff;
    font-weight: 800;
    font-size: 0.85rem;
    line-height: 1;
}

.login-alert__text {
    flex: 1;
    min-width: 0;
}

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

.form-label {
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 8px;
    display: block;
}

.form-control {
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    padding: 12px 16px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.8);
}

.form-control:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
    outline: none;
}

.login-btn {
    border: none;
    border-radius: 12px;
    padding: 14px 30px;
    color: white;
    font-weight: 600;
    font-size: 1rem;
    width: 100%;
    transition: all 0.3s ease;
    cursor: pointer;
}

.login-btn:hover {
    transform: translateY(-2px);
}

.forgot-password {
    text-align: center;
    margin-top: 15px;
}

.forgot-password a {
    text-decoration: none;
    font-weight: 500;
}

.forgot-password a:hover {
    text-decoration: underline;
}

.divider {
    text-align: center;
    margin: 30px 0;
    position: relative;
}

/* Linija i tekst koriste theme boju preko --login-copyright-link-color (postavlja tema na .login-container) */
.divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent 0%, var(--login-copyright-link-color, #e2e8f0) 20%, var(--login-copyright-link-color, #cbd5e1) 50%, var(--login-copyright-link-color, #e2e8f0) 80%, transparent 100%);
    border-radius: 1px;
    opacity: 0.6;
}

.divider span {
    position: relative;
    display: inline-block;
    background: #fff;
    padding: 0.35rem 1rem;
    color: var(--login-copyright-link-color, #374151);
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    border-radius: 9999px;
    border: 1px solid var(--login-copyright-link-color);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06);
}

.google-btn {
    background: #4285f4;
    border: none;
    border-radius: 12px;
    padding: 12px 20px;
    color: white;
    font-weight: 600;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.3s ease;
    text-decoration: none;
}

.google-btn:hover {
    background: #357ae8;
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(66, 133, 244, 0.3);
    color: white;
    text-decoration: none;
}

.apple-btn {
    background: #000000;
    border: none;
    border-radius: 12px;
    padding: 12px 20px;
    color: white;
    font-weight: 600;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 12px;
    transition: all 0.3s ease;
    text-decoration: none;
}

.apple-btn:hover {
    background: #333333;
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
    color: white;
    text-decoration: none;
}

.copyright {
    text-align: center;
    margin-top: 30px;
    font-size: 0.9rem;
}

/* Unutar login kartice – samo tekst u produžetku, bez okvira */
.login-card .copyright {
    margin-top: 1.25rem;
    padding: 0;
    background: none;
    border: none;
    color: #374151;
    font-size: 0.85rem;
    line-height: 1.5;
}

/* Boju linkova postavlja tema (login-vlk.css, login-roda.css, itd.) preko --login-copyright-link-color */
.login-card .copyright a {
    color: var(--login-copyright-link-color, #374151);
    font-weight: 500;
    text-decoration: none;
}

.login-card .copyright a:hover {
    text-decoration: underline;
}

/* Mobil – manji spacing da sve stane na ekran */
@media (max-width: 767px) {
    .login-container .row {
        align-items: flex-start;
        padding-top: 1rem;
        padding-bottom: 1rem;
        min-height: 100vh;
    }
    .login-card {
        padding: 1rem !important;
        border-radius: 16px;
    }
    .login-header {
        margin-bottom: 1rem;
    }
    .login-logo {
        margin-bottom: 0.75rem;
    }
    .login-logo img {
        max-height: 48px;
        margin-bottom: 0 !important;
    }
    .login-title {
        font-size: 1.35rem;
        margin-bottom: 0.25rem;
    }
    .login-subtitle {
        font-size: 0.9rem;
    }
    .form-group {
        margin-bottom: 0.875rem;
    }
    .form-label {
        margin-bottom: 0.35rem;
    }
    .form-control {
        padding: 0.5rem 0.75rem;
        font-size: 0.9375rem;
    }
    .login-btn {
        padding: 0.625rem 1rem;
    }
    .forgot-password {
        margin-top: 0.5rem;
    }
    .divider {
        margin: 1rem 0;
    }
    .divider span {
        font-size: 0.8rem;
        padding: 0 0.75rem;
    }
    .google-btn,
    .apple-btn {
        padding: 0.5rem 0.75rem;
        font-size: 0.9rem;
    }
    .apple-btn {
        margin-top: 0.5rem;
    }
    .copyright {
        margin-top: 1rem;
        font-size: 0.8rem;
    }
    .login-card .text-muted.small {
        font-size: 0.75rem !important;
        margin-top: 0.5rem !important;
    }
}
