/**
 * Klasičan Gejming - Auth Pages CSS
 * Login, Register, Profile stilovi
 */

/* ===== Auth Section ===== */
.auth-section {
    min-height: calc(100vh - 200px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    background: 
        radial-gradient(ellipse at top left, rgba(255, 45, 117, 0.1) 0%, transparent 50%),
        radial-gradient(ellipse at bottom right, rgba(0, 212, 255, 0.1) 0%, transparent 50%),
        var(--bg-primary);
}

.auth-container {
    width: 100%;
    max-width: 480px;
}

.auth-box {
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-xl);
    padding: 48px 40px;
    box-shadow: var(--shadow-xl);
    position: relative;
    overflow: hidden;
}

.auth-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-primary);
}

/* Auth Header */
.auth-header {
    text-align: center;
    margin-bottom: 36px;
}

.auth-logo {
    width: 120px;
    height: auto;
    margin: 0 auto 20px;
    display: block;
}

.auth-logo img {
    width: 100%;
    height: auto;
    object-fit: contain;
}

.auth-header h1 {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.auth-header p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

/* Auth Form */
.auth-form {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 8px;
}

.form-group label i {
    color: var(--accent-pink);
    font-size: 0.85rem;
}

.form-group input {
    width: 100%;
    padding: 14px 18px;
    background: var(--bg-input);
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-size: 1rem;
    transition: all var(--transition-normal);
}

.form-group input::placeholder {
    color: var(--text-muted);
}

.form-group input:focus {
    outline: none;
    border-color: var(--accent-pink);
    box-shadow: 0 0 0 4px rgba(255, 45, 117, 0.15);
    background: var(--bg-darker);
}

.form-group input:hover:not(:focus) {
    border-color: var(--border-light);
}

/* Form Hint */
.form-hint {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 4px;
}

/* Password Toggle */
.password-wrapper {
    position: relative;
}

.password-wrapper input {
    padding-right: 50px;
}

.password-toggle {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 8px;
    transition: color var(--transition-fast);
}

.password-toggle:hover {
    color: var(--accent-pink);
}

/* Submit Button */
.auth-form .btn-primary {
    width: 100%;
    padding: 16px 24px;
    font-size: 1rem;
    font-weight: 600;
    margin-top: 8px;
    background: var(--gradient-primary);
    border: none;
    border-radius: var(--radius-md);
    color: white;
    cursor: pointer;
    transition: all var(--transition-normal);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.auth-form .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow-pink);
}

.auth-form .btn-primary:active {
    transform: translateY(0);
}

/* Auth Divider */
.auth-divider {
    display: flex;
    align-items: center;
    margin: 24px 0;
    color: var(--text-secondary);
    font-size: 0.85rem;
}

.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--border-color);
}

.auth-divider span {
    padding: 0 16px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Google Button */
.btn-google {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: 100%;
    padding: 14px 24px;
    background: #fff;
    border: 1px solid rgba(0,0,0,0.1);
    border-radius: var(--radius-md);
    color: #333;
    font-size: 0.95rem;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: all var(--transition-normal);
}

.btn-google:hover {
    background: #f8f9fa;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transform: translateY(-2px);
}

.btn-google svg {
    flex-shrink: 0;
}

/* Alerts */
.alert {
    padding: 14px 18px;
    border-radius: var(--radius-md);
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.95rem;
}

.alert::before {
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    font-size: 1.1rem;
}

.alert-error {
    background: rgba(255, 51, 102, 0.15);
    border: 1px solid rgba(255, 51, 102, 0.3);
    color: #ff6b8a;
}

.alert-error::before {
    content: '\f06a';
    color: var(--accent-red);
}

.alert-error .resend-link {
    display: inline-block;
    color: #fff;
    background: rgba(108, 92, 231, 0.8);
    padding: 8px 16px;
    border-radius: 6px;
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.alert-error .resend-link:hover {
    background: rgba(108, 92, 231, 1);
    transform: translateY(-2px);
}

.alert-error .resend-link i {
    margin-right: 6px;
}

.alert-success {
    background: rgba(0, 255, 136, 0.15);
    border: 1px solid rgba(0, 255, 136, 0.3);
    color: #4fffaa;
}

.alert-success::before {
    content: '\f058';
    color: var(--accent-green);
}

.alert-info {
    background: rgba(0, 212, 255, 0.15);
    border: 1px solid rgba(0, 212, 255, 0.3);
    color: var(--accent-cyan-light);
}

.alert-info::before {
    content: '\f05a';
    color: var(--accent-cyan);
}

/* Auth Links */
.auth-links {
    text-align: center;
    margin-top: 28px;
    padding-top: 24px;
    border-top: 1px solid var(--border-color);
}

.auth-links p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.auth-links a {
    color: var(--accent-pink);
    font-weight: 500;
    text-decoration: none;
    transition: color var(--transition-fast);
}

.auth-links a:hover {
    color: var(--accent-pink-light);
    text-decoration: underline;
}

/* Divider */
.auth-divider {
    display: flex;
    align-items: center;
    gap: 16px;
    margin: 24px 0;
    color: var(--text-muted);
    font-size: 0.85rem;
}

.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--border-color);
}

/* ===== Moj Nalog Page ===== */
.profile-page {
    padding: 40px 0 80px;
}

.profile-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 32px;
    align-items: start;
}

/* Profile Sidebar */
.profile-sidebar {
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-xl);
    padding: 32px 24px;
    text-align: center;
    position: sticky;
    top: 100px;
}

.profile-avatar-wrapper {
    position: relative;
    width: 140px;
    height: 140px;
    margin: 0 auto 20px;
}

.profile-avatar {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
    color: white;
    overflow: hidden;
    border: 4px solid var(--bg-card);
    box-shadow: var(--shadow-glow-pink);
}

.profile-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.avatar-upload-btn {
    position: absolute;
    bottom: 8px;
    right: 8px;
    width: 40px;
    height: 40px;
    background: var(--accent-cyan);
    border: 3px solid var(--bg-card);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.avatar-upload-btn:hover {
    background: var(--accent-cyan-light);
    transform: scale(1.1);
}

.profile-name {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.profile-email {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 16px;
}

.profile-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    background: var(--gradient-primary);
    border-radius: var(--radius-full);
    font-size: 0.8rem;
    font-weight: 600;
    color: white;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.profile-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid var(--border-color);
}

.stat-item {
    text-align: center;
}

.stat-value {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent-pink);
}

.stat-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
}

/* Profile Tabs */
.profile-nav {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid var(--border-color);
}

.profile-nav a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-radius: var(--radius-md);
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.95rem;
    transition: all var(--transition-fast);
}

.profile-nav a:hover {
    background: var(--bg-hover);
    color: var(--text-primary);
}

.profile-nav a.active {
    background: rgba(255, 45, 117, 0.15);
    color: var(--accent-pink);
}

.profile-nav a i {
    width: 20px;
    text-align: center;
}

/* Profile Content */
.profile-content {
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-xl);
    padding: 36px;
}

.profile-section {
    margin-bottom: 40px;
}

.profile-section:last-child {
    margin-bottom: 0;
}

.profile-section h2 {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.profile-section h2 i {
    color: var(--accent-pink);
}

/* Profile Form */
.profile-form {
    display: grid;
    gap: 24px;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.profile-form textarea {
    width: 100%;
    padding: 14px 18px;
    background: var(--bg-input);
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-size: 1rem;
    font-family: inherit;
    resize: vertical;
    min-height: 120px;
    transition: all var(--transition-normal);
}

.profile-form textarea:focus {
    outline: none;
    border-color: var(--accent-pink);
    box-shadow: 0 0 0 4px rgba(255, 45, 117, 0.15);
}

/* Form Actions */
.form-actions {
    display: flex;
    gap: 16px;
    justify-content: flex-end;
    padding-top: 24px;
    border-top: 1px solid var(--border-color);
    margin-top: 16px;
}

.btn-secondary {
    padding: 12px 24px;
    background: var(--bg-hover);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    color: var(--text-secondary);
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.btn-secondary:hover {
    background: var(--bg-card-hover);
    color: var(--text-primary);
}

/* Danger Zone */
.danger-zone {
    background: rgba(255, 51, 102, 0.1);
    border: 1px solid rgba(255, 51, 102, 0.2);
    border-radius: var(--radius-lg);
    padding: 24px;
    margin-top: 40px;
}

.danger-zone h3 {
    color: var(--accent-red);
    font-size: 1.1rem;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.danger-zone p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 16px;
}

.btn-danger {
    padding: 10px 20px;
    background: transparent;
    border: 1px solid var(--accent-red);
    border-radius: var(--radius-md);
    color: var(--accent-red);
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.btn-danger:hover {
    background: var(--accent-red);
    color: white;
}

/* ===== Responsive ===== */
@media (max-width: 968px) {
    .profile-layout {
        grid-template-columns: 1fr;
    }
    
    .profile-sidebar {
        position: static;
    }
    
    .profile-nav {
        flex-direction: row;
        flex-wrap: wrap;
    }
    
    .profile-nav a {
        flex: 1;
        min-width: 120px;
        justify-content: center;
    }
}

@media (max-width: 640px) {
    .auth-box {
        padding: 32px 24px;
    }
    
    .auth-header h1 {
        font-size: 1.6rem;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .profile-content {
        padding: 24px;
    }
    
    .form-actions {
        flex-direction: column;
    }
    
    .form-actions .btn {
        width: 100%;
    }
}

/* Input with prefix */
.input-with-prefix {
    display: flex;
    align-items: stretch;
}

.input-with-prefix .input-prefix {
    display: flex;
    align-items: center;
    padding: 0 14px;
    background: rgba(255,255,255,0.05);
    border: 1px solid var(--border-color);
    border-right: none;
    border-radius: var(--radius-md) 0 0 var(--radius-md);
    color: var(--text-secondary);
    font-weight: 600;
}

.input-with-prefix input {
    flex: 1;
    border-radius: 0 var(--radius-md) var(--radius-md) 0 !important;
}

