/* =====================================================
   AUTH PAGES - Stilovi za stranice prijave i registracije
   ===================================================== */

/* ==========================================
   AUTH HERO
   ========================================== */
.auth-hero {
    position: relative;
    min-height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    background: linear-gradient(135deg, #0d0d0d 0%, #1a1a1a 50%, #0d0d0d 100%);
    padding-top: 100px;
    margin-top: 0;
}

.auth-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 50%, rgba(255,107,0,0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 50%, rgba(255,140,0,0.1) 0%, transparent 50%);
    animation: pulseGlow 4s ease-in-out infinite alternate;
}

@keyframes pulseGlow {
    0% { opacity: 0.5; }
    100% { opacity: 1; }
}

.auth-hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 100px;
    background: linear-gradient(to top, var(--bg-dark), transparent);
}

.auth-hero__content {
    position: relative;
    z-index: 1;
    padding: 40px 20px;
}

.auth-hero__badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, rgba(255,107,0,0.2), rgba(255,140,0,0.1));
    color: var(--primary);
    padding: 10px 24px;
    border-radius: 50px;
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 20px;
    border: 1px solid rgba(255,107,0,0.3);
    animation: fadeInUp 0.6s ease-out;
}

.auth-hero__title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    margin-bottom: 10px;
    animation: fadeInUp 0.6s ease-out 0.1s both;
}

.auth-hero__subtitle {
    font-size: 1.1rem;
    color: var(--text-secondary);
    animation: fadeInUp 0.6s ease-out 0.2s both;
}

/* ==========================================
   AUTH SECTION & CONTAINER
   ========================================== */
.auth-section {
    padding: 40px 0 80px;
}

.auth-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.auth-container-single {
    display: flex;
    justify-content: center;
    align-items: flex-start;
}

@media (max-width: 968px) {
    .auth-container {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .auth-image {
        display: none;
    }
}

/* ==========================================
   AUTH BOX
   ========================================== */
.auth-box {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 40px;
    max-width: 480px;
    margin: 0 auto;
}

.auth-box--wide {
    max-width: 700px;
}

@media (min-width: 768px) {
    .auth-box--wide .form-row {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 20px;
    }
    
    .auth-box--wide .form-row .form-group {
        margin-bottom: 0;
    }
}

.auth-box__header {
    text-align: center;
    margin-bottom: 30px;
}

.auth-box__logo {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(255, 107, 0, 0.2);
}

.auth-box__logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.auth-box__title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.auth-box__subtitle {
    color: var(--text-secondary);
}

/* ==========================================
   AUTH FORM
   ========================================== */
.auth-form .form-group {
    margin-bottom: 20px;
}

.form-section {
    margin: 30px 0;
    padding: 25px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    border-radius: 16px;
}

.form-section__title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.form-section__title i {
    color: var(--primary);
}

.form-section__subtitle {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 20px;
}

.form-label {
    display: block;
    font-weight: 500;
    margin-bottom: 8px;
    color: var(--text-secondary);
}

.input-wrapper {
    position: relative;
}

.input-wrapper .form-input {
    padding-left: 50px;
    padding-right: 50px;
}

.input-wrapper__icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    pointer-events: none;
}

.input-wrapper__toggle {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    cursor: pointer;
    padding: 8px;
    border-radius: 8px;
    transition: all 0.3s;
    background: transparent;
    border: none;
}

.input-wrapper__toggle:hover {
    color: var(--primary);
    background: rgba(255, 107, 0, 0.1);
}

.form-input {
    width: 100%;
    padding: 14px 16px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    color: var(--text-primary);
    font-size: 1rem;
    transition: all 0.3s;
}

.form-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(255, 107, 0, 0.15);
    background: rgba(255, 255, 255, 0.05);
}

.form-input::placeholder {
    color: var(--text-muted);
}

.auth-form .btn {
    width: 100%;
    padding: 16px;
    font-size: 1.1rem;
    margin-top: 10px;
}

/* ==========================================
   AUTH MESSAGES
   ========================================== */
.auth-error {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
    padding: 14px 18px;
    border-radius: 12px;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 12px;
    border: 1px solid rgba(239, 68, 68, 0.2);
}

.auth-success {
    background: rgba(16, 185, 129, 0.1);
    color: #10b981;
    padding: 14px 18px;
    border-radius: 12px;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 12px;
    border: 1px solid rgba(16, 185, 129, 0.2);
}

/* ==========================================
   AUTH DIVIDER & LINKS
   ========================================== */
.auth-divider {
    display: flex;
    align-items: center;
    margin: 30px 0;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--border-color);
}

.auth-divider span {
    padding: 0 15px;
}

.auth-links {
    text-align: center;
    margin-top: 24px;
    color: var(--text-secondary);
}

.auth-links a {
    color: var(--primary);
    font-weight: 500;
    transition: opacity 0.3s;
}

.auth-links a:hover {
    opacity: 0.8;
}

/* ==========================================
   AUTH IMAGE SIDE
   ========================================== */
.auth-image {
    position: relative;
    border-radius: 24px;
    overflow: hidden;
    height: 500px;
}

.auth-image::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255,107,0,0.3) 0%, transparent 60%);
    z-index: 1;
}

.auth-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.auth-image__content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 40px;
    background: linear-gradient(to top, rgba(0,0,0,0.9), transparent);
    z-index: 2;
}

.auth-image__title {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.auth-image__text {
    color: var(--text-secondary);
}

/* ==========================================
   FORM ELEMENTS
   ========================================== */
.required {
    color: #ef4444;
    margin-left: 2px;
}

.form-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    cursor: pointer;
    user-select: none;
}

.form-checkbox input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.form-checkbox__box {
    width: 22px;
    height: 22px;
    border: 2px solid var(--border-color);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.3s;
    background: var(--bg-secondary);
}

.form-checkbox__box i {
    font-size: 12px;
    color: white;
    opacity: 0;
    transition: opacity 0.2s;
}

.form-checkbox input:checked + .form-checkbox__box {
    background: var(--primary);
    border-color: var(--primary);
}

.form-checkbox input:checked + .form-checkbox__box i {
    opacity: 1;
}

.form-checkbox__text {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.5;
}

.form-checkbox__text a {
    color: var(--primary);
    text-decoration: none;
}

.form-checkbox__text a:hover {
    text-decoration: underline;
}

/* ==========================================
   RESPONSIVE
   ========================================== */
@media (max-width: 991px) {
    .auth-page {
        padding: 80px 0 40px;
    }
    
    .auth-container {
        max-width: 100%;
        padding: 0 20px;
    }
    
    .auth-box {
        padding: 35px 25px;
    }
    
    .auth-image {
        display: none;
    }
}

@media (max-width: 768px) {
    .auth-page {
        padding: 70px 0 30px;
    }
    
    .auth-box {
        padding: 30px 20px;
        border-radius: var(--radius-lg);
    }
    
    .auth-hero__badge {
        font-size: 0.75rem;
        padding: 6px 14px;
        gap: 6px;
    }
    
    .auth-hero__badge i {
        font-size: 0.75rem;
    }
    
    .auth-hero__title {
        font-size: 1.75rem;
    }
    
    .auth-hero__subtitle {
        font-size: 0.9rem;
    }
    
    .auth-box__title {
        font-size: 1.25rem;
    }
    
    .auth-box__subtitle {
        font-size: 0.9rem;
    }
    
    .auth-tabs {
        gap: 5px;
    }
    
    .auth-tabs__btn {
        font-size: 0.9rem;
        padding: 12px 20px;
    }
}

@media (max-width: 576px) {
    .auth-page {
        padding: 60px 0 20px;
    }
    
    .auth-container {
        padding: 0 15px;
    }
    
    .auth-box {
        padding: 25px 15px;
        border-radius: var(--radius-md);
    }
    
    .auth-hero__title {
        font-size: 1.5rem;
    }
    
    .auth-hero__subtitle {
        font-size: 0.85rem;
    }
    
    .auth-box__title {
        font-size: 1.15rem;
    }
    
    .auth-tabs__btn {
        font-size: 0.85rem;
        padding: 10px 16px;
    }
    
    .auth-social {
        flex-direction: column;
    }
    
    .auth-social__btn {
        width: 100%;
        justify-content: center;
    }
    
    .auth-divider {
        margin: 20px 0;
    }
    
    .form-checkbox {
        gap: 10px;
    }
    
    .form-checkbox__box {
        width: 20px;
        height: 20px;
    }
    
    .form-checkbox__text {
        font-size: 0.85rem;
    }
    
    .auth-links {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
}

@media (max-width: 375px) {
    .auth-box {
        padding: 20px 12px;
    }
    
    .auth-hero__title {
        font-size: 1.35rem;
    }
    
    .auth-tabs__btn {
        padding: 10px 12px;
        font-size: 0.8rem;
    }
}
