/* ADMIN LOGIN CSS - FUTURISTIČKI STIL SA GOLD AKCENTIMA */

body {
    background: url('../../assets/images/admin-bg.jpg') center/cover no-repeat fixed;
    min-height: 100vh;
    color: white;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem 1rem;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* Background overlay */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(13, 13, 13, 0.95) 0%, rgba(13, 13, 13, 0.85) 50%, rgba(13, 13, 13, 0.95) 100%);
    z-index: -1;
}

/* Admin Login Container */
.admin-login-container {
    max-width: 480px;
    width: 100%;
    margin: auto;
    z-index: 1;
}

/* Admin Header */
.admin-header {
    text-align: center;
    margin-bottom: 3rem;
    opacity: 0;
    transform: translateY(-30px);
    animation: slideDown 0.8s ease forwards;
}

@keyframes slideDown {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.admin-logo {
    color: #D4A843;
    font-size: 2.5rem;
    font-weight: bold;
    text-shadow: 0 0 20px rgba(212, 168, 67, 0.8), 0 0 40px rgba(212, 168, 67, 0.4);
    margin-bottom: 1rem;
    letter-spacing: 0.1em;
}

.admin-subtitle {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.1rem;
    font-weight: 300;
    letter-spacing: 0.05em;
}

/* Main Login Card */
.login-card {
    background: rgba(20, 20, 20, 0.95);
    border: 1px solid rgba(212, 168, 67, 0.3);
    box-shadow: 0 0 30px rgba(212, 168, 67, 0.2), 0 0.75rem 1.5rem rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(10px);
    border-radius: 1rem;
    overflow: hidden;
    opacity: 0;
    transform: translateY(30px);
    animation: slideUp 0.8s ease 0.3s forwards;
}

@keyframes slideUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.login-card:hover {
    border-color: rgba(212, 168, 67, 0.5);
    box-shadow: 0 0 40px rgba(212, 168, 67, 0.3), 0 1rem 2rem rgba(0, 0, 0, 0.6);
}

.card-body {
    padding: 2.5rem;
}

/* Login Title */
.login-title {
    text-align: center;
    color: #D4A843;
    font-size: 1.4rem;
    font-weight: bold;
    margin-bottom: 2rem;
    text-shadow: 0 0 10px rgba(212, 168, 67, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
}

.security-icon {
    font-size: 1.6rem;
    filter: drop-shadow(0 0 8px rgba(212, 168, 67, 0.6));
}

/* Form Labels */
.form-label {
    color: #D4A843;
    font-weight: bold;
    margin-bottom: 0.75rem;
    text-shadow: 0 0 6px rgba(212, 168, 67, 0.6);
    display: block;
}

/* Input Wrapper */
.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

/* Form Controls */
.form-control {
    background-color: rgba(30, 30, 30, 0.9);
    border: 1px solid rgba(212, 168, 67, 0.3);
    color: white;
    border-radius: 0.5rem;
    padding: 0.75rem 3rem 0.75rem 3rem;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-control:focus {
    background-color: rgba(40, 40, 40, 0.95);
    border-color: #D4A843;
    color: white;
    box-shadow: 0 0 0 0.25rem rgba(212, 168, 67, 0.25);
    outline: none;
}

.form-control::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

/* Input Icons */
.input-icon {
    position: absolute;
    left: 1rem;
    font-size: 1.2rem;
    color: rgba(212, 168, 67, 0.7);
    z-index: 2;
}

/* Password Toggle */
.password-toggle {
    position: absolute;
    right: 1rem;
    background: none;
    border: none;
    color: rgba(212, 168, 67, 0.7);
    cursor: pointer;
    padding: 0;
    display: flex;
    align-items: center;
    z-index: 2;
    transition: color 0.3s ease;
}

.password-toggle:hover {
    color: #D4A843;
}

.toggle-icon {
    font-size: 1.1rem;
}

/* Form Check */
.form-check {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.form-check-input {
    background-color: rgba(30, 30, 30, 0.9);
    border: 1px solid rgba(212, 168, 67, 0.3);
    border-radius: 0.25rem;
    width: 1.2rem;
    height: 1.2rem;
}

.form-check-input:checked {
    background-color: #D4A843;
    border-color: #D4A843;
}

.form-check-input:focus {
    box-shadow: 0 0 0 0.25rem rgba(212, 168, 67, 0.25);
    border-color: #D4A843;
}

.form-check-label {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
    cursor: pointer;
}

/* Submit Button */
.btn-primary {
    background: linear-gradient(135deg, #D4A843 0%, #0099cc 100%) !important;
    border: none !important;
    color: #000000 !important;
    border-radius: 0.75rem !important;
    padding: 0.85rem 2rem !important;
    font-size: 1.1rem !important;
    font-weight: bold !important;
    transition: all 0.3s ease !important;
    width: 100%;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #00e6e6 0%, #0088bb 100%) !important;
    box-shadow: 0 0 20px rgba(212, 168, 67, 0.6) !important;
    transform: translateY(-2px) !important;
    color: #000000 !important;
}

.btn-primary:focus {
    background: linear-gradient(135deg, #00e6e6 0%, #0088bb 100%) !important;
    box-shadow: 0 0 20px rgba(212, 168, 67, 0.6) !important;
    color: #000000 !important;
}

.btn-primary:disabled {
    background: rgba(212, 168, 67, 0.3) !important;
    color: rgba(255, 255, 255, 0.5) !important;
    cursor: not-allowed !important;
    transform: none !important;
}

/* Security Info */
.security-info {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(212, 168, 67, 0.2);
}

.security-warning {
    background: rgba(255, 193, 7, 0.1);
    border: 1px solid rgba(255, 193, 7, 0.3);
    border-radius: 0.5rem;
    padding: 0.75rem 1rem;
    margin-bottom: 1rem;
    color: rgba(255, 193, 7, 0.9);
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.warning-icon {
    font-size: 1.1rem;
}

.ip-info {
    text-align: center;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.85rem;
    font-family: 'Courier New', monospace;
}

#user-ip {
    color: #D4A843;
    font-weight: bold;
}

/* Return Link */
.return-link {
    text-align: center;
    margin-top: 2rem;
    opacity: 0;
    animation: fadeIn 0.8s ease 0.6s forwards;
}

@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

.back-to-site {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.back-to-site:hover {
    color: #D4A843;
    text-shadow: 0 0 6px rgba(212, 168, 67, 0.6);
}

.back-icon {
    font-size: 1.2rem;
    transition: transform 0.3s ease;
}

.back-to-site:hover .back-icon {
    transform: translateX(-3px);
}

/* Admin Footer */
.admin-footer {
    margin-top: 3rem;  /* Razmak od sadržaja iznad */
    text-align: center;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.8rem;
    z-index: 1;
}

.footer-text {
    margin-bottom: 0.25rem;
}

.footer-version {
    color: rgba(212, 168, 67, 0.6);
    font-family: 'Courier New', monospace;
}

/* ===== NOTIFICATIONS ===== */
.notification-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 10000;
    max-width: 400px;
}

.notification {
    background: rgba(20, 20, 20, 0.95);
    border: 1px solid rgba(212, 168, 67, 0.3);
    border-radius: 0.75rem;
    padding: 1rem 1.5rem;
    margin-bottom: 0.75rem;
    backdrop-filter: blur(10px);
    box-shadow: 0 0 20px rgba(212, 168, 67, 0.2), 0 0.5rem 1rem rgba(0, 0, 0, 0.3);
    transform: translateX(100%);
    opacity: 0;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.notification.show {
    transform: translateX(0);
    opacity: 1;
}

.notification.success {
    border-color: rgba(81, 207, 102, 0.5);
    box-shadow: 0 0 20px rgba(81, 207, 102, 0.2), 0 0.5rem 1rem rgba(0, 0, 0, 0.3);
}

.notification.error {
    border-color: rgba(239, 68, 68, 0.5);
    box-shadow: 0 0 20px rgba(239, 68, 68, 0.2), 0 0.5rem 1rem rgba(0, 0, 0, 0.3);
}

.notification.warning {
    border-color: rgba(255, 193, 7, 0.5);
    box-shadow: 0 0 20px rgba(255, 193, 7, 0.2), 0 0.5rem 1rem rgba(0, 0, 0, 0.3);
}

.notification-icon {
    display: inline-block;
    margin-right: 0.75rem;
    font-size: 1.2rem;
    vertical-align: middle;
}

.notification-content {
    display: inline-block;
    vertical-align: middle;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
    line-height: 1.4;
}

.notification-close {
    position: absolute;
    top: 0.5rem;
    right: 0.75rem;
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.6);
    font-size: 1.2rem;
    cursor: pointer;
    transition: color 0.3s ease;
    padding: 0;
    line-height: 1;
}

.notification-close:hover {
    color: #D4A843;
}

.notification-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    background: linear-gradient(90deg, #D4A843, #0099cc);
    border-radius: 0 0 0.75rem 0.75rem;
    transition: width linear;
}

.notification.success .notification-progress {
    background: linear-gradient(90deg, #51cf66, #37b24d);
}

.notification.error .notification-progress {
    background: linear-gradient(90deg, #EF4444, #DC2626);
}

.notification.warning .notification-progress {
    background: linear-gradient(90deg, #ffd43b, #fab005);
}

/* Form Validation */
.form-control.is-invalid {
    border-color: #EF4444;
    box-shadow: 0 0 0 0.25rem rgba(239, 68, 68, 0.25);
}

.invalid-feedback {
    display: none;
    color: #EF4444;
    font-size: 0.875rem;
    margin-top: 0.5rem;
}

.form-control.is-invalid + .invalid-feedback,
.form-control.is-invalid ~ .invalid-feedback {
    display: block;
}

/* Responsive Design */
@media (max-width: 576px) {
    .admin-login-container {
        padding: 0 1rem;
    }

    .card-body {
        padding: 2rem 1.5rem;
    }

    .admin-logo {
        font-size: 2rem;
    }

    .admin-subtitle {
        font-size: 1rem;
    }

    .notification-container {
        top: 80px;
        right: 15px;
        left: 15px;
        max-width: none;
    }

    .notification {
        padding: 0.75rem 1rem;
    }

    .admin-footer {
        position: relative;
        margin-top: 2rem;
        bottom: auto;
        left: auto;
        transform: none;
    }
}

/* Loading spinner */
.spinner-border-sm {
    width: 1rem;
    height: 1rem;
    border-width: 0.125em;
}