﻿/* ==========================================================================
   SMISLI-ME: WooCommerce Premium Auth UI
   Overrides default WooCommerce My Account login/register forms
   ========================================================================== */

/* The main wrapper on the My Account page */
.woocommerce-account .woocommerce {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 70vh;
}

/* Auth Wrapper - Container for forms */
.smisli-auth-wrapper {
    width: 100%;
    max-width: 500px;
    margin: 40px auto;
    background: #ffffff;
    border-radius: 24px;
    padding: 40px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.08);
    /* Soft, premium shadow */
    font-family: var(--font-body, 'Inter', sans-serif);
    position: relative;
    overflow: hidden;
    transition: max-width 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.smisli-auth-wrapper.is-register {
    max-width: 768px;
    /* Proširena širina za formu za kreiranje naloga */
}

/* Header Sections inside panels */
.smisli-auth-header {
    text-align: center;
    margin-bottom: 30px;
}

.smisli-auth-header h2 {
    font-family: var(--font-heading, 'Syne', sans-serif);
    font-size: 2.2rem;
    font-weight: 700;
    color: #111;
    margin: 0 0 10px 0;
    line-height: 1.2;
}

.smisli-auth-header p {
    color: #666;
    font-size: 0.95rem;
    margin: 0;
}

/* Hide Native WooCommerce Headings (duplicate) */
.smisli-auth-wrapper .u-column1 h2,
.smisli-auth-wrapper .u-column2 h2 {
    display: none !important;
}

/* Form Styles */
.smisli-auth-wrapper form {
    margin: 0;
    padding: 0;
    border: none;
}

.smisli-input-group {
    margin-bottom: 20px !important;
}

.smisli-input-group label {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
}

/* Style Inputs heavily */
.smisli-auth-wrapper input.input-text,
.smisli-auth-wrapper input[type="text"],
.smisli-auth-wrapper input[type="email"],
.smisli-auth-wrapper input[type="password"],
.smisli-auth-wrapper input[type="tel"] {
    width: 100%;
    padding: 15px 20px !important;
    font-size: 1rem;
    color: #333;
    background-color: #fcfcfc;
    border: 2px solid #e1e5ee !important;
    /* Vidljiva granica, popravka za 'belo na belo' */
    border-radius: 12px !important;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.smisli-auth-wrapper input.input-text:focus,
.smisli-auth-wrapper input[type="text"]:focus,
.smisli-auth-wrapper input[type="email"]:focus,
.smisli-auth-wrapper input[type="password"]:focus,
.smisli-auth-wrapper input[type="tel"]:focus {
    background-color: #fff;
    border-color: var(--accent-indigo, #9013dc) !important;
    /* Theme Color */
    outline: none;
    box-shadow: 0 0 0 4px rgba(144, 19, 220, 0.1) !important;
}

/* Buttons */
.smisli-auth-actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    margin-top: 30px !important;
}

.smisli-btn {
    width: 100%;
    padding: 16px 20px !important;
    font-size: 1.1rem !important;
    font-weight: 700 !important;
    text-align: center;
    border-radius: 50px !important;
    /* Pill shape */
    cursor: pointer;
    transition: all 0.3s ease !important;
    border: none;
    font-family: var(--font-body, 'Inter', sans-serif);
    display: block;
}

.smisli-btn-primary {
    background: linear-gradient(135deg, var(--accent-indigo, #9013dc) 0%, var(--accent-pink, #f4438b) 100%) !important;
    color: #fff !important;
    box-shadow: 0 10px 20px rgba(144, 19, 220, 0.2) !important;
}

.smisli-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 25px rgba(144, 19, 220, 0.3) !important;
}

.smisli-btn-outline {
    background: transparent !important;
    color: var(--accent-indigo, #9013dc) !important;
    border: 2px solid var(--accent-indigo, #9013dc) !important;
}

.smisli-btn-outline:hover {
    background: rgba(144, 19, 220, 0.05) !important;
}

/* Switcher / Footer inside auth */
.smisli-auth-switch {
    margin-top: 30px;
    padding-top: 25px;
    border-top: 1px solid #eee;
    text-align: center;
}

.smisli-auth-switch p {
    color: #666;
    margin-bottom: 15px;
    font-size: 0.95rem;
}

/* Remember Me Checkbox */
.smisli-checkbox {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    width: 100%;
}

.smisli-checkbox input {
    width: 18px;
    height: 18px;
    accent-color: var(--accent-indigo, #9013dc);
    cursor: pointer;
}

.smisli-checkbox-text {
    font-size: 0.95rem;
    color: #555;
}

/* Lost Password Link */
.woocommerce-LostPassword {
    text-align: center;
    margin-top: 15px !important;
}

.woocommerce-LostPassword a {
    color: #888;
    font-size: 0.9rem;
    text-decoration: none;
    transition: color 0.2s;
}

.woocommerce-LostPassword a:hover {
    color: var(--accent-indigo, #9013dc);
    text-decoration: underline;
}

/* Hide WooCommerce native notices if desired, or let them show gracefully */
.woocommerce-error,
.woocommerce-info,
.woocommerce-message {
    border-radius: 12px !important;
    font-family: var(--font-body, 'Inter', sans-serif);
}

/* Registration Grid / Layout */
.smisli-auth-wrapper .u-columns.col2-set {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

/* On larger screens, maybe side by side, but mobile first: column */
@media (min-width: 768px) {
    .smisli-auth-wrapper .u-columns.col2-set {
        flex-direction: row;
        gap: 30px;
    }

    .smisli-auth-wrapper .u-column1,
    .smisli-auth-wrapper .u-column2 {
        flex: 1;
        width: 100%;
    }
}

/* Mobile Responsiveness */
@media (max-width: 600px) {
    .smisli-auth-wrapper {
        padding: 30px 20px;
        margin: 20px 15px;
        border-radius: 16px;
    }

    .smisli-auth-header h2 {
        font-size: 1.8rem;
    }

    .smisli-register-grid {
        flex-direction: column;
        gap: 0;
    }
}