/*
 * app.min.css sets #app,body,html { height: 100% } for admin shells. On layouts.app (auth / guest)
 * that pins the page to the viewport and causes a second scroll track plus content cut off above the
 * footer links. Let the document grow with content; min-height keeps short pages full-viewport.
 */
html {
    height: auto !important;
    min-height: 100%;
}

body.min-vh-100 {
    height: auto !important;
}

body > #app.app {
    height: auto !important;
    min-height: 100vh;
    min-height: 100dvh;
}

:root {
    --primary-color: #A2DE44;
    --secondary-color: #C7A6E5;
    --link-blue: #3b82f6;
    --text-main: #1f2937;
    --text-muted: #6b7280;
    --input-border: #e5e7eb;
    --btn-text-light: #ffffff;
    --bg-light: #ffffff;
    --btn-background-black: #2c2c2c;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-light);
    color: var(--text-main);
    position: relative;
    overflow-x: hidden;
}

.grid-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 50vh;
    background-size: 40px 40px;
    background-image:
        linear-gradient(to right, rgba(0, 0, 0, 0.03) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(0, 0, 0, 0.03) 1px, transparent 1px);
    mask-image: linear-gradient(to bottom, black 40%, transparent 100%);
    -webkit-mask-image: linear-gradient(to bottom, black 40%, transparent 100%);
    z-index: -1;
    pointer-events: none;
}

.shape-container {
    position: absolute;
    z-index: -1;
    pointer-events: none;
}

.shape-left {
    left: 0;
    top: 40%;
    transform: translateY(calc(-50% - 40px));
    width: 180px;
    height: auto;
    max-width: 20vw;
}

.shape-left img {
    width: 100%;
    height: auto;
    max-width: 180px;
}

.shape-right {
    right: 0;
    top: 60%;
    transform: translateY(calc(-50% + 40px));
    width: 180px;
    height: auto;
    max-width: 20vw;
}

.shape-right img {
    width: 100%;
    height: auto;
    max-width: 180px;
}

/* Bottom-aligned shapes for register page */
.shape-left-bottom {
    left: 0;
    bottom: 0;
    width: 380px;
    height: auto;
    max-width: 35vw;
}

.shape-left-bottom img {
    width: 100%;
    height: auto;
    max-width: 380px;
}

.shape-right-bottom {
    right: 0;
    bottom: 0;
    width: 380px;
    height: auto;
    max-width: 35vw;
}

.shape-right-bottom img {
    width: 100%;
    height: auto;
    max-width: 380px;
}

/* Form wrapper for register page */
.signin-wrapper-register {
    max-width: 550px !important;
    padding: 30px !important;
}

.signin-wrapper-register .d-flex.flex-column.mb-4 {
    gap: 16px !important;
}

.signin-wrapper-register .mb-4 {
    margin-bottom: 20px !important;
}

.signin-wrapper-register .text-sm-start.mb-5 {
    margin-bottom: 30px !important;
    margin-top: 30px !important;
}

.signin-wrapper {
    width: 100%;
    max-width: 600px;
    padding: 40px;
    background: transparent;
    z-index: 1;
    margin: 0 auto;
    position: relative;
}

#app > .flex-grow-1 {
    display: flex;
    flex-direction: column;
    min-height: auto;
    overflow: visible;
}

#app.app {
    overflow: visible;
}

main {
    flex: 0 1 auto !important;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 20px;
    min-height: auto;
}

main.subscription-plan-page {
    align-items: stretch;
    justify-content: flex-start;
}

.form-control {
    padding: 12px 16px;
    border: 1px solid #d9d9d9;
    font-size: 16px;
    border-radius: 8px;
    height: 40px;
    font-family: 'Inter', sans-serif;
}

.form-control:focus {
    border-color: black !important;
    z-index: 10;
}

.form-select {
    padding: 12px 16px;
    border: 1px solid #d9d9d9;
    font-size: 16px;
    border-radius: 8px;
    height: 40px;
    font-family: 'Inter', sans-serif;
    background-color: #ffffff;
}

.form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.25rem rgba(162, 222, 68, 0.25);
    z-index: 10;
}

.form-label {
    font-size: 16px;
    font-weight: 400;
    color: #1e1e1e;
    margin-bottom: 8px;
    font-family: 'Inter', sans-serif;
    line-height: 139.9999976158142%;
}

.btn-custom {
    background-color: var(--btn-background-black);
    color: var(--btn-text-light);
    font-weight: 400;
    font-size: 16px;
    padding: 12px;
    border-radius: 8px;
    transition: all 0.2s ease;
    font-family: 'Inter', sans-serif;
    line-height: 100%;
    border: none !important;
}

.link-custom {
    color: #0045CD;
    text-decoration: none;
    transition: color 0.2s;
    font-weight: 700;
    font-size: 16px;
    font-family: 'Roboto', sans-serif;
    line-height: 24px;
}

.link-custom:hover {
    color: #2563eb;
    text-decoration: underline;
}

.form-check-input {
    width: 1rem;
    height: 1rem;
    border-color: var(--btn-background-black);
}

.form-check-input:checked {
    background-color: var(--btn-background-black);
    border-color: var(--btn-background-black);
}



.form-check-label {
    font-size: 16px;
    color: #1e1e1e;
    font-family: 'Inter', sans-serif;
    line-height: 139.9999976158142%;
}

.footer-text {
    color: #b3b3b3;
    font-size: 16px;
    position: relative;
    z-index: 10;
    font-family: 'Inter', sans-serif;
    line-height: 139.9999976158142%;
}

.login-logo {
    margin-bottom: 14px;
    z-index: 10;
}

.login-logo h1 {
    font-size: 40.29px;
    font-weight: 400;
    font-family: 'Impact', sans-serif;
    line-height: 58.2px;
    margin: 0;
    color: #000;
    text-align: left;
}

.signin-title {
    font-size: 24px;
    font-weight: 600;
    font-family: 'Roboto', sans-serif;
    line-height: 32px;
    color: #1e1e1e;
    margin-bottom: 0;
    text-align: left;
}

.signin-subtitle {
    font-size: 16px;
    font-weight: 500;
    font-family: 'Roboto', sans-serif;
    line-height: 22px;
    color: #757575;
    margin-top: 0;
    text-align: left;
}

.input-group-password {
    position: relative;
}

.toggle-password-btn {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    z-index: 5;
    padding: 0;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.toggle-password-btn:hover {
    color: var(--text-main);
}

.toggle-password-btn i {
    font-size: 16px;
}

@media (max-width: 991.98px) {
    .shape-left, .shape-right {
        width: 200px;
        max-width: 25vw;
    }
    
    .shape-left img, .shape-right img {
        max-width: 200px;
    }
    
    .shape-left-bottom, .shape-right-bottom {
        width: 320px;
        max-width: 32vw;
    }
    
    .shape-left-bottom img, .shape-right-bottom img {
        max-width: 320px;
    }
    
    .signin-wrapper {
        max-width: 550px;
        padding: 35px;
    }
    
    .signin-wrapper-register {
        max-width: 520px !important;
        padding: 28px !important;
    }
    
    .signin-wrapper-register .d-flex.flex-column.mb-4 {
        gap: 14px !important;
    }
    
    .signin-wrapper-register .mb-4 {
        margin-bottom: 18px !important;
    }
}

@media (max-width: 768px) {
    .shape-left, .shape-right {
        width: 150px;
        max-width: 20vw;
    }
    
    .shape-left img, .shape-right img {
        max-width: 150px;
    }
    
    .shape-left-bottom, .shape-right-bottom {
        width: 280px;
        max-width: 30vw;
    }
    
    .shape-left-bottom img, .shape-right-bottom img {
        max-width: 280px;
    }
    
    .signin-wrapper {
        max-width: 500px;
        padding: 30px;
    }
    
    .signin-wrapper-register {
        max-width: 480px !important;
        padding: 25px !important;
    }
    
    .signin-wrapper-register .d-flex.flex-column.mb-4 {
        gap: 12px !important;
    }
    
    .signin-wrapper-register .mb-4 {
        margin-bottom: 16px !important;
    }
    
    main {
        padding: 20px 15px !important;
    }
    
    .login-logo h1 {
        font-size: 35px;
        line-height: 45px;
    }
    
    .signin-title {
        font-size: 22px;
        line-height: 30px;
    }
    
    .signin-subtitle {
        font-size: 15px;
        line-height: 21px;
    }
}

@media (max-width: 576px) {
    .shape-left, .shape-right {
        width: 120px;
        max-width: 30vw;
        opacity: 0.5;
    }
    
    .shape-left img, .shape-right img {
        max-width: 120px;
    }
    
    .shape-left-bottom, .shape-right-bottom {
        width: 200px;
        max-width: 38vw;
        opacity: 0.5;
    }
    
    .shape-left-bottom img, .shape-right-bottom img {
        max-width: 200px;
    }
    
    .signin-wrapper {
        max-width: 100%;
        padding: 24px 20px;
    }
    
    .signin-wrapper-register {
        max-width: 95% !important;
        padding: 20px 18px !important;
    }
    
    .signin-wrapper-register .d-flex.flex-column.mb-4 {
        gap: 10px !important;
    }
    
    .signin-wrapper-register .mb-4 {
        margin-bottom: 14px !important;
    }
    
    .signin-wrapper-register .text-sm-start.mb-5 {
        margin-bottom: 25px !important;
        margin-top: 25px !important;
    }
    
    .signin-wrapper-register form {
        margin-top: 30px !important;
    }
    
    main {
        padding: 15px 10px !important;
    }
    
    .login-logo {
        margin-bottom: 20px;
    }
    
    .login-logo h1 {
        font-size: 28px;
        line-height: 36px;
    }
    
    .signin-title {
        font-size: 20px;
        line-height: 28px;
    }
    
    .signin-subtitle {
        font-size: 14px;
        line-height: 20px;
    }
    
    .form-label {
        font-size: 14px;
    }
    
    .form-control {
        font-size: 14px;
        padding: 10px 14px;
        height: 38px;
    }
    
    .btn-custom {
        font-size: 14px;
        padding: 10px;
        height: 38px;
    }
    
    .form-check-label {
        font-size: 14px;
    }
    
    .link-custom {
        font-size: 14px;
    }
    
    .text-muted {
        font-size: 14px !important;
    }
    
    .text-sm-start {
        margin-top: 30px !important;
        margin-bottom: 30px !important;
    }
    
    form {
        margin-top: 30px !important;
    }
    
    .d-flex.flex-column.mb-4 {
        gap: 15px !important;
        margin-bottom: 25px !important;
    }
    
    .d-flex.align-items-center.justify-content-between.mb-4 {
        flex-direction: column;
        align-items: flex-start !important;
        gap: 15px;
        margin-bottom: 25px !important;
    }
    
    .mb-4[style*="margin-bottom: 28px"] {
        margin-bottom: 20px !important;
    }
}

@media (max-width: 400px) {
    .signin-wrapper {
        padding: 20px 15px;
    }
    
    .login-logo h1 {
        font-size: 24px;
        line-height: 32px;
    }
    
    .signin-title {
        font-size: 18px;
        line-height: 26px;
    }
}

/* Password Requirements Styles */
.password-requirements {
    margin-top: 12px;
}

.requirement {
    display: flex;
    align-items: center;
    font-size: 14px;
    color: #718096;
    margin-bottom: 8px;
    transition: color 0.3s ease;
    font-family: 'Inter', sans-serif;
}

.requirement-icon {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 2px solid #cbd5e0;
    margin-right: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.requirement.text-success {
    color: #10b981;
}

.requirement.text-success .requirement-icon {
    border-color: #10b981;
    background-color: #d1fae5;
}

.requirement.text-success .requirement-icon.border-success {
    border-color: #10b981;
}

.requirement.text-success .requirement-icon i {
    color: #10b981;
}

.requirement-icon i {
    font-size: 10px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.requirement.text-success .requirement-icon i {
    opacity: 1;
}


/* Profile Settings Styles */
.profile-upload-container {
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 30px;
    background-color: #fff;
}

.avatar-circle {
    width: 80px;
    height: 80px;
    background-color: #f0f0f0;
    border-radius: 50%;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
}

.avatar-circle img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.upload-btn {
    border: 1px solid #0045cd;
    color: #0045cd;
    background: #fdfdfd;
    font-weight: 500;
    padding: 8px 16px;
    border-radius: 6px;
    transition: all 0.2s;
    font-size: 14px;
    font-family: 'Inter', sans-serif;
}

.upload-btn:hover {
    background-color: #eef4ff;
    border-color: #0039a6;
    color: #0039a6;
}

.upload-hint {
    font-size: 14px;
    color: #757575;
    margin-top: 8px;
    font-family: 'Inter', sans-serif;
}

@media (max-width: 576px) {
    .profile-upload-container {
        flex-direction: column;
        text-align: center;
        padding: 15px;
    }
    
    .upload-btn {
        width: 100%;
    }
}


