/*
 * Petz Auth Pages - Modern Styling
 * Beautiful, warm, and inviting design for Register/Login
 * Matching dashboard aesthetics
 */

:root {
    --petz-primary: #5cb85c;
    --petz-primary-rgb: 92, 184, 92;
    --petz-primary-light: #7dd87d;
    --petz-primary-dark: #4cae4c;
    --petz-text-dark: #2c3e50;
    --petz-radius: 12px;
}

/* ============================================
   AUTH CONTAINER & BOX IMPROVEMENTS
   ============================================ */

.auth-container {
    padding: 40px 0 60px 0;
}

.auth-box {
    background: #fff;
    border-radius: 20px !important;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.08) !important;
    padding: 50px 45px !important;
    max-width: 520px;
    margin: 0 auto;
    position: relative;
}

.auth-box .title {
    font-size: 30px !important;
    font-weight: 700 !important;
    color: var(--petz-text-dark) !important;
    margin-bottom: 30px !important;
    text-align: center;
    letter-spacing: -0.5px;
}

/* ============================================
   MODERN FORM INPUTS
   ============================================ */

.auth-form-input,
.auth-box .form-control {
    height: 54px !important;
    border-radius: var(--petz-radius) !important;
    border: 1.5px solid #e0e0e0 !important;
    background-color: #fcfcfc !important;
    padding: 0 18px !important;
    font-size: 15px !important;
    color: #333 !important;
    box-shadow: none !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.auth-form-input:focus,
.auth-box .form-control:focus {
    border-color: var(--petz-primary) !important;
    background-color: #fff !important;
    box-shadow: 0 0 0 3px rgba(var(--petz-primary-rgb), 0.1) !important;
    transform: translateY(-1px);
}

.auth-form-input::placeholder,
.auth-box .form-control::placeholder {
    color: #999 !important;
    font-weight: 400;
}

/* ============================================
   MODERN BUTTONS
   ============================================ */

.auth-box .btn-custom,
.auth-box .btn-md.btn-custom {
    height: 54px !important;
    border-radius: var(--petz-radius) !important;
    font-size: 16px !important;
    font-weight: 700 !important;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    background: linear-gradient(135deg, var(--petz-primary) 0%, var(--petz-primary-dark) 100%) !important;
    border: none !important;
    box-shadow: 0 4px 15px rgba(var(--petz-primary-rgb), 0.3) !important;
    transition: all 0.3s ease;
}

.auth-box .btn-custom:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(var(--petz-primary-rgb), 0.4) !important;
}

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

/* ============================================
   FORM GROUP SPACING
   ============================================ */

.auth-box .form-group {
    margin-bottom: 20px !important;
}

/* ============================================
   SOCIAL LOGIN SECTION
   ============================================ */

.auth-box .social-login {
    margin-bottom: 25px;
}

.social-login .btn-login-facebook,
.social-login .btn-login-google {
    height: 50px !important;
    border-radius: var(--petz-radius) !important;
    font-weight: 600 !important;
    font-size: 15px !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1) !important;
    transition: all 0.3s ease;
}

.social-login .btn-login-facebook:hover,
.social-login .btn-login-google:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15) !important;
}

.social-login .or-text {
    color: #999;
    font-weight: 500;
    font-size: 14px;
    margin: 20px 0;
}

/* ============================================
   CHECKBOX STYLING
   ============================================ */

.auth-box .custom-control-label {
    font-size: 14px !important;
    color: #666 !important;
    padding-top: 2px;
}

.auth-box .custom-control-label .link-terms {
    color: var(--petz-primary) !important;
    font-weight: 600;
}

.auth-box .custom-control-input:checked ~ .custom-control-label::before {
    background-color: var(--petz-primary) !important;
    border-color: var(--petz-primary) !important;
}

/* ============================================
   LINKS & TEXT
   ============================================ */

.auth-box .link,
.auth-box .link-forgot-password {
    color: var(--petz-primary) !important;
    font-weight: 600 !important;
    transition: color 0.3s ease;
}

.auth-box .link:hover,
.auth-box .link-forgot-password:hover {
    color: var(--petz-primary-dark) !important;
    text-decoration: underline;
}

.auth-box .p-social-media {
    text-align: center;
    color: #666;
    font-size: 14px;
}

/* ============================================
   MODAL SPECIFIC STYLING
   ============================================ */

.modal-dialog.login-modal .auth-box {
    max-width: 100%;
    border-radius: 16px !important;
    padding: 40px 35px !important;
}

.modal-dialog.login-modal .title {
    font-size: 26px !important;
    margin-bottom: 25px !important;
}

.modal .close {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 24px;
    color: #999;
    opacity: 0.6;
    transition: opacity 0.3s ease;
    z-index: 10;
}

.modal .close:hover {
    opacity: 1;
    color: #333;
}

/* ============================================
   RESULT/ERROR MESSAGES
   ============================================ */

#result-register,
#result-login,
#confirmation-result-login {
    border-radius: 10px;
    padding: 12px 16px;
    margin-bottom: 20px;
}

/* ============================================
   LOADING SPINNER
   ============================================ */

.spinner-activation-register {
    text-align: center;
    padding: 20px 0;
}

.spinner div {
    background-color: var(--petz-primary);
}

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 576px) {
    .auth-box {
        padding: 35px 25px !important;
        border-radius: 16px !important;
    }

    .auth-box .title {
        font-size: 24px !important;
    }

    .auth-form-input,
    .auth-box .form-control {
        height: 50px !important;
        font-size: 14px !important;
    }

    .auth-box .btn-custom {
        height: 50px !important;
        font-size: 15px !important;
    }
}

/* ============================================
   PLAYFUL PAW PRINTS DECORATION
   ============================================ */

/* Paw prints background - subtle and playful */
.auth-box::before,
.auth-box::after {
    content: '';
    position: absolute;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cg fill='%235cb85c' opacity='0.06'%3E%3Ccircle cx='50' cy='35' r='12'/%3E%3Cellipse cx='32' cy='55' rx='8' ry='10' transform='rotate(-20 32 55)'/%3E%3Cellipse cx='68' cy='55' rx='8' ry='10' transform='rotate(20 68 55)'/%3E%3Cellipse cx='38' cy='70' rx='7' ry='9' transform='rotate(-10 38 70)'/%3E%3Cellipse cx='62' cy='70' rx='7' ry='9' transform='rotate(10 62 70)'/%3E%3C/g%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
    pointer-events: none;
    z-index: 0;
}

/* Large paw - top left */
.auth-box::before {
    width: 120px;
    height: 120px;
    top: -20px;
    left: -30px;
    transform: rotate(-15deg);
}

/* Medium paw - bottom right */
.auth-box::after {
    width: 80px;
    height: 80px;
    bottom: 20px;
    right: -10px;
    transform: rotate(25deg);
    opacity: 0.8;
}

/* Additional paw for modals */
.modal-dialog .auth-box::before {
    width: 100px;
    height: 100px;
    top: -15px;
    left: -20px;
}

/* Ensure content stays above decoration */
.auth-box > * {
    position: relative;
    z-index: 1;
}

/* ============================================
   WELCOME SUBTITLE & BENEFITS
   ============================================ */

/* Welcome subtitle below title */
.auth-subtitle {
    font-size: 16px;
    color: #666;
    text-align: center;
    margin: -20px 0 25px 0;
    font-weight: 500;
    line-height: 1.5;
}

.auth-subtitle-highlight {
    color: var(--petz-primary);
    font-weight: 600;
}

/* Benefits section for register page */
.auth-benefits {
    background: linear-gradient(135deg, #f8fff8 0%, #f0fdf0 100%);
    border: 1.5px solid #e8f8e8;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 25px;
}

.auth-benefits-title {
    font-size: 14px;
    font-weight: 700;
    color: var(--petz-text-dark);
    margin-bottom: 12px;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.auth-benefits-list {
    display: flex;
    justify-content: space-around;
    gap: 15px;
    flex-wrap: wrap;
}

.auth-benefit-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    flex: 1;
    min-width: 100px;
}

.auth-benefit-icon {
    width: 36px;
    height: 36px;
    background: var(--petz-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 18px;
}

.auth-benefit-text {
    font-size: 13px;
    color: #555;
    font-weight: 600;
    text-align: center;
}

/* Login welcome message */
.auth-welcome-box {
    background: linear-gradient(135deg, #f8fff8 0%, #f0fdf0 100%);
    border-left: 4px solid var(--petz-primary);
    border-radius: 10px;
    padding: 15px 18px;
    margin-bottom: 15px; /* Reduced from 25px */
    text-align: center;
}

.auth-welcome-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--petz-text-dark);
    margin-bottom: 5px;
}

.auth-welcome-message {
    font-size: 14px;
    color: #666;
    margin: 0;
}

/* ============================================
   ANIMATION ENHANCEMENTS
   ============================================ */

.auth-box {
    animation: fadeInUp 0.6s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Smooth focus animation */
.auth-form-input,
.auth-box .form-control {
    position: relative;
}

.auth-form-input:focus,
.auth-box .form-control:focus {
    animation: focusPulse 0.3s ease-out;
}

@keyframes focusPulse {
    0% {
        box-shadow: 0 0 0 0 rgba(var(--petz-primary-rgb), 0.1);
    }
    100% {
        box-shadow: 0 0 0 3px rgba(var(--petz-primary-rgb), 0.1);
    }
}

/* Paw animation on hover */
.auth-box:hover::before {
    animation: pawBounce 2s ease-in-out infinite;
}

@keyframes pawBounce {
    0%, 100% {
        transform: rotate(-15deg) translateY(0);
    }
    50% {
        transform: rotate(-15deg) translateY(-5px);
    }
}
