/* Auth pages - LePet.sk v2 */

.auth-container {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    min-height: 60vh;
    padding: 40px 16px;
    background: linear-gradient(180deg, #f8faf8 0%, #fff 100%);
}

.auth-card {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 8px 40px rgba(0,0,0,0.08), 0 1px 3px rgba(0,0,0,0.04);
    padding: 40px 36px;
    width: 100%;
    max-width: 480px;
    border: 1px solid #e8ede8;
}

.auth-card-wide {
    max-width: 640px;
}

.auth-icon {
    text-align: center;
    margin-bottom: 16px;
}

.auth-icon i {
    font-size: 2.5rem;
    color: #2E7D32;
    background: #E8F5E9;
    width: 70px;
    height: 70px;
    line-height: 70px;
    border-radius: 50%;
    display: inline-block;
}

.auth-card h1 {
    font-family: 'Inter', sans-serif;
    font-size: 1.75rem;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 8px 0;
    text-align: center;
}

.auth-desc {
    text-align: center;
    margin-bottom: 24px;
    font-size: 0.9rem;
    color: #666;
    font-family: 'Inter', sans-serif;
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.auth-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.auth-field label {
    font-family: 'Inter', sans-serif;
    font-size: 0.85rem;
    font-weight: 600;
    color: #333;
}

.auth-field label i {
    color: #2E7D32;
    width: 18px;
    margin-right: 2px;
}

.auth-field input[type="text"],
.auth-field input[type="email"],
.auth-field input[type="password"],
.auth-field input[type="number"],
.auth-field textarea {
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    padding: 12px 14px;
    border: 1.5px solid #ddd;
    border-radius: 10px;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
    background: #fafafa;
}

.auth-field input:focus,
.auth-field textarea:focus {
    border-color: #2E7D32;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(46,125,50,0.1);
}

.auth-field input:disabled {
    background: #eee;
    color: #666;
    cursor: not-allowed;
}

.auth-field small {
    font-size: 0.78rem;
    color: #888;
}

.auth-field textarea {
    resize: vertical;
    min-height: 80px;
}

/* Password toggle */
.auth-password-wrap {
    position: relative;
}

.auth-password-wrap input {
    width: 100%;
    padding-right: 44px;
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    padding: 12px 44px 12px 14px;
    border: 1.5px solid #ddd;
    border-radius: 10px;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
    background: #fafafa;
    box-sizing: border-box;
}

.auth-password-wrap input:focus {
    border-color: #2E7D32;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(46,125,50,0.1);
}

.auth-toggle-pw {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    color: #888;
    font-size: 1rem;
    padding: 4px;
    transition: color 0.2s;
}

.auth-toggle-pw:hover {
    color: #2E7D32;
}

/* Password strength */
.auth-pw-strength {
    height: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.75rem;
    font-weight: 600;
    font-family: 'Inter', sans-serif;
}

.auth-pw-bar {
    height: 4px;
    border-radius: 2px;
    transition: width 0.3s, background 0.3s;
    max-width: 120px;
}

/* CAPTCHA */
.auth-captcha-question {
    font-family: 'Inter', monospace;
    font-size: 1.2rem;
    font-weight: 700;
    color: #1a1a1a;
    background: #f0f4f0;
    border: 1px dashed #2E7D32;
    border-radius: 8px;
    padding: 10px 16px;
    text-align: center;
    letter-spacing: 2px;
}

/* Remember me row */
.auth-remember {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.auth-checkbox {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    color: #555;
    cursor: pointer;
    font-family: 'Inter', sans-serif;
}

.auth-checkbox input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: #2E7D32;
    cursor: pointer;
}

.auth-forgot {
    font-size: 0.82rem;
    color: #2E7D32;
    text-decoration: none;
    font-weight: 500;
    font-family: 'Inter', sans-serif;
}

.auth-forgot:hover {
    text-decoration: underline;
}

/* Terms */
.auth-terms {
    text-align: center;
}

.auth-terms small {
    font-size: 0.78rem;
    color: #888;
    font-family: 'Inter', sans-serif;
}

.auth-terms a {
    color: #2E7D32;
    text-decoration: none;
}

.auth-terms a:hover {
    text-decoration: underline;
}

/* Button */
.auth-btn {
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    padding: 14px 24px;
    background: linear-gradient(135deg, #2E7D32, #43A047);
    color: #fff;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: transform 0.15s, box-shadow 0.2s;
    margin-top: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.auth-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(46,125,50,0.3);
}

.auth-btn:active {
    transform: translateY(0);
}

.auth-btn-secondary {
    background: linear-gradient(135deg, #666, #555);
}

.auth-btn-secondary:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,0.2);
}

.auth-btn-link {
    font-family: 'Inter', sans-serif;
    font-size: 0.85rem;
    color: #e53935;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px 0;
    transition: color 0.2s;
}

.auth-btn-link:hover {
    color: #b71c1c;
    text-decoration: underline;
}

/* Messages */
.auth-errors {
    background: #FFF5F5;
    border: 1px solid #FFCDD2;
    border-left: 4px solid #e53935;
    border-radius: 10px;
    padding: 14px 18px;
    margin-bottom: 20px;
}

.auth-errors p {
    margin: 6px 0;
    color: #C62828;
    font-size: 0.85rem;
    font-family: 'Inter', sans-serif;
    display: flex;
    align-items: center;
    gap: 8px;
}

.auth-success {
    background: #F1F8F1;
    border: 1px solid #C8E6C9;
    border-left: 4px solid #2E7D32;
    border-radius: 10px;
    padding: 14px 18px;
    margin-bottom: 20px;
}

.auth-success p {
    margin: 6px 0;
    color: #2E7D32;
    font-size: 0.85rem;
    font-family: 'Inter', sans-serif;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Footer links */
.auth-footer {
    text-align: center;
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.auth-footer p {
    font-size: 0.875rem;
    color: #666;
    font-family: 'Inter', sans-serif;
}

.auth-footer a {
    color: #2E7D32;
    text-decoration: none;
    font-weight: 600;
}

.auth-footer a:hover {
    text-decoration: underline;
}

.auth-link {
    text-align: center;
    margin-top: 20px;
    font-size: 0.875rem;
    color: #666;
    font-family: 'Inter', sans-serif;
}

.auth-link a {
    color: #2E7D32;
    text-decoration: none;
    font-weight: 600;
}

.auth-link a:hover {
    text-decoration: underline;
}

.auth-divider {
    border: none;
    border-top: 1px solid #eee;
    margin: 24px 0;
}

.auth-form-inline {
    text-align: center;
}

/* ===== PROFILE PAGE ===== */

.prof-page {
    background: #f5f7f5;
    min-height: 70vh;
    padding: 30px 16px;
}

.prof-layout {
    max-width: 1000px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 24px;
    align-items: start;
}

/* Sidebar */
.prof-card {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.06);
    padding: 28px 24px;
    text-align: center;
    border: 1px solid #e8ede8;
}

.prof-avatar-zone {
    position: relative;
    width: 120px;
    height: 120px;
    margin: 0 auto 16px;
    border-radius: 50%;
    cursor: pointer;
    overflow: hidden;
}

.prof-avatar-img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid #E8F5E9;
    box-shadow: 0 4px 16px rgba(0,0,0,0.1);
}

.prof-avatar-letter {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: linear-gradient(135deg, #2E7D32, #66BB6A);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    font-weight: 700;
    color: #fff;
    font-family: 'Inter', sans-serif;
    border: 4px solid #E8F5E9;
    box-shadow: 0 4px 16px rgba(0,0,0,0.1);
}

.prof-avatar-overlay {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: rgba(0,0,0,0.55);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    opacity: 0;
    transition: opacity 0.25s;
    color: #fff;
    font-size: 0.75rem;
    font-family: 'Inter', sans-serif;
}

.prof-avatar-overlay i {
    font-size: 1.3rem;
}

.prof-avatar-zone:hover .prof-avatar-overlay,
.prof-avatar-zone.drag-over .prof-avatar-overlay {
    opacity: 1;
}

.prof-avatar-zone.drag-over {
    box-shadow: 0 0 0 3px #2E7D32;
    border-radius: 50%;
}

.prof-name {
    font-family: 'Inter', sans-serif;
    font-size: 1.2rem;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 4px;
}

.prof-role {
    font-size: 0.8rem;
    color: #888;
    margin: 0 0 16px;
    font-family: 'Inter', sans-serif;
}

.prof-meta-list {
    text-align: left;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.prof-meta-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 0.82rem;
    color: #555;
    font-family: 'Inter', sans-serif;
    line-height: 1.4;
}

.prof-meta-item i {
    color: #2E7D32;
    width: 16px;
    flex-shrink: 0;
    margin-top: 2px;
}

.prof-sep {
    border: none;
    border-top: 1px solid #eee;
    margin: 16px 0;
}

.prof-del-avatar {
    margin-top: 8px;
}

.prof-link-btn {
    font-family: 'Inter', sans-serif;
    font-size: 0.78rem;
    color: #e53935;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px 0;
    transition: color 0.2s;
}

.prof-link-btn:hover {
    color: #b71c1c;
    text-decoration: underline;
}

.prof-logout-btn {
    font-family: 'Inter', sans-serif;
    font-size: 0.85rem;
    font-weight: 500;
    color: #666;
    background: #f5f5f5;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 10px 20px;
    width: 100%;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.prof-logout-btn:hover {
    background: #eee;
    border-color: #ccc;
}

/* Main content */
.prof-main {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.prof-tabs {
    display: flex;
    gap: 4px;
    background: #fff;
    border-radius: 12px;
    padding: 4px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    border: 1px solid #e8ede8;
}

.prof-tab {
    flex: 1;
    font-family: 'Inter', sans-serif;
    font-size: 0.88rem;
    font-weight: 500;
    padding: 12px 16px;
    background: none;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    color: #666;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.prof-tab:hover {
    color: #2E7D32;
    background: #f5f7f5;
}

.prof-tab.active {
    color: #fff;
    background: linear-gradient(135deg, #2E7D32, #43A047);
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(46,125,50,0.25);
}

.prof-tab i {
    font-size: 0.85rem;
}

.prof-section-card {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.06);
    padding: 28px;
    border: 1px solid #e8ede8;
}

.prof-section-card + .prof-section-card {
    margin-top: 20px;
}

.prof-section-title {
    font-family: 'Inter', sans-serif;
    font-size: 1.05rem;
    font-weight: 600;
    color: #1a1a1a;
    margin: 0 0 6px;
}

.prof-section-desc {
    font-size: 0.82rem;
    color: #888;
    margin: 0 0 20px;
    font-family: 'Inter', sans-serif;
}

.prof-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.prof-form-actions {
    padding-top: 8px;
}

.prof-bio-counter {
    display: block;
    text-align: right;
    color: #aaa;
}

/* Account info table */
.prof-info-table {
    width: 100%;
    border-collapse: collapse;
    font-family: 'Inter', sans-serif;
    font-size: 0.88rem;
}

.prof-info-table td {
    padding: 10px 12px;
    border-bottom: 1px solid #f0f0f0;
}

.prof-info-table tr:last-child td {
    border-bottom: none;
}

.prof-info-table td:first-child {
    color: #888;
    width: 120px;
    font-weight: 500;
}

.prof-badge {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 12px;
}

.prof-badge-ok {
    background: #E8F5E9;
    color: #2E7D32;
}

/* Responsive */
@media (max-width: 768px) {
    .prof-layout {
        grid-template-columns: 1fr;
    }

    .prof-form-grid {
        grid-template-columns: 1fr;
    }

    .prof-section-card {
        padding: 20px;
    }
}

/* Keep old classes for backward compat */
.profile-avatar-edit {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: #2E7D32;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    cursor: pointer;
    border: 2px solid #fff;
    transition: background 0.2s;
}

.profile-avatar-edit:hover {
    background: #1B5E20;
}

.profile-info h1 {
    text-align: left;
    font-size: 1.4rem;
    margin-bottom: 4px;
}

.profile-email {
    font-size: 0.85rem;
    color: #666;
    margin: 2px 0;
    font-family: 'Inter', sans-serif;
}

.profile-email i, .profile-meta i {
    color: #2E7D32;
    width: 16px;
    margin-right: 4px;
}

.profile-meta {
    font-size: 0.8rem;
    color: #888;
    margin: 2px 0;
    font-family: 'Inter', sans-serif;
}

/* Tabs */
.profile-tabs {
    display: flex;
    gap: 4px;
    margin-bottom: 24px;
    border-bottom: 2px solid #eee;
    padding-bottom: 0;
}

.profile-tab {
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    font-weight: 500;
    padding: 12px 20px;
    background: none;
    border: none;
    border-bottom: 3px solid transparent;
    margin-bottom: -2px;
    cursor: pointer;
    color: #666;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 6px;
}

.profile-tab:hover {
    color: #2E7D32;
}

.profile-tab.active {
    color: #2E7D32;
    border-bottom-color: #2E7D32;
    font-weight: 600;
}

.profile-tab i {
    font-size: 0.85rem;
}

.profile-section-title {
    font-family: 'Inter', sans-serif;
    font-size: 1.1rem;
    font-weight: 600;
    color: #333;
    margin: 0 0 16px 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.profile-section-title i {
    color: #2E7D32;
}

.profile-account-info {
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    color: #555;
}

.profile-account-info p {
    margin: 8px 0;
    padding: 8px 12px;
    background: #f8faf8;
    border-radius: 6px;
}

/* Nav auth button */
.lp-nav-user a {
    color: #2E7D32 !important;
    font-weight: 600;
}

.lp-nav-login {
    font-weight: 500;
}

/* Responsive */
@media (max-width: 520px) {
    .auth-card {
        padding: 28px 20px;
        border-radius: 12px;
    }

    .auth-icon i {
        width: 56px;
        height: 56px;
        line-height: 56px;
        font-size: 2rem;
    }

    .profile-header {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .profile-info h1 {
        text-align: center;
    }

    .profile-tabs {
        overflow-x: auto;
    }

    .auth-remember {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
}
