:root[data-theme="light"] {
    --login-card-bg: #ffffff;
    --login-card-shadow: 0 10px 25px rgba(0, 0, 0, 0.05),
        0 5px 10px rgba(0, 0, 0, 0.02);
    --input-bg: #f5f7f8;
    --input-border: #e1e5eb;
    --input-focus-border: #417bd6;
    --input-text: #090d14;
    --input-placeholder: #a0a8b1;
    --input-icon: #777f89;
    --label-color: #555d67;
    --button-bg: #417bd6;
    --button-hover-bg: #3568b8;
    --button-text: #ffffff;
    --link-color: #417bd6;
    --link-hover-color: #3568b8;
    --checkbox-bg: #ffffff;
    --checkbox-border: #d4d9e2;
    --checkbox-checked-bg: #417bd6;

    --profile-card-bg: #ffffff;
    --profile-card-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
    --profile-sidebar-bg: #f5f7f8;
    --profile-nav-hover: #eaeef6;
    --profile-nav-active: #417bd6;
    --profile-nav-active-bg: #edf2fd;
    --profile-nav-text: #555d67;
    --profile-nav-active-text: #417bd6;
    --section-border: #e1e5eb;
    --section-header-border: #e1e5eb;
    --btn-primary-bg: #417bd6;
    --btn-primary-text: #ffffff;
    --btn-primary-hover: #3568b8;
    --btn-secondary-bg: #e1e5eb;
    --btn-secondary-text: #555d67;
    --btn-secondary-hover: #d4d9e2;
    --btn-danger-bg: #f44336;
    --btn-danger-text: #ffffff;
    --btn-danger-hover: #d32f2f;
    --danger-zone-bg: #fff5f5;
    --danger-zone-border: #ffdbdb;
    --danger-zone-text: #d32f2f;
    --modal-overlay: rgba(0, 0, 0, 0.5);
    --modal-bg: #ffffff;
    --modal-border: #e1e5eb;
    --status-success-bg: #e6f7ef;
    --status-success-text: #00a67e;
    --verification-bg: #fff8e6;
    --verification-border: #ffedb3;
    --verification-text: #b58a0c;
}

:root[data-theme="dark"] {
    --login-card-bg: #1e2329;
    --login-card-shadow: 0 10px 25px rgba(0, 0, 0, 0.25),
        0 5px 10px rgba(0, 0, 0, 0.15);
    --input-bg: #262a30;
    --input-border: #32383f;
    --input-focus-border: #2861bd;
    --input-text: #ffffff;
    --input-placeholder: #6c747e;
    --input-icon: #777f89;
    --label-color: #a0a8b1;
    --button-bg: #2861bd;
    --button-hover-bg: #215096;
    --button-text: #ffffff;
    --link-color: #2568d4;
    --link-hover-color: #1b4a99;
    --checkbox-bg: #262a30;
    --checkbox-border: #3d444d;
    --checkbox-checked-bg: #2861bd;

    --profile-card-bg: #1e2329;
    --profile-card-shadow: 0 10px 25px rgba(0, 0, 0, 0.25);
    --profile-sidebar-bg: #262a30;
    --profile-nav-hover: #32383f;
    --profile-nav-active: #2861bd;
    --profile-nav-active-bg: #1e293a;
    --profile-nav-text: #a0a8b1;
    --profile-nav-active-text: #2568d4;
    --section-border: #32383f;
    --section-header-border: #32383f;
    --btn-primary-bg: #2861bd;
    --btn-primary-text: #ffffff;
    --btn-primary-hover: #215096;
    --btn-secondary-bg: #32383f;
    --btn-secondary-text: #a0a8b1;
    --btn-secondary-hover: #3d444d;
    --btn-danger-bg: #c62828;
    --btn-danger-text: #ffffff;
    --btn-danger-hover: #b71c1c;
    --danger-zone-bg: #3a2828;
    --danger-zone-border: #4d2e2e;
    --danger-zone-text: #ff6b6b;
    --modal-overlay: rgba(0, 0, 0, 0.7);
    --modal-bg: #1e2329;
    --modal-border: #32383f;
    --status-success-bg: #1a332c;
    --status-success-text: #4ade80;
    --verification-bg: #332e1a;
    --verification-border: #4d4426;
    --verification-text: #ffc107;
}

.login-container {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
}

.login-card {
    width: 100%;
    max-width: 450px;
    padding: 2.5rem;
    background-color: var(--login-card-bg);
    border-radius: 1.2rem;
    box-shadow: var(--login-card-shadow);
}

.login-header {
    margin-bottom: 2rem;
    text-align: center;
}

.login-header h1 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--text);
}

.login-header p {
    color: var(--secondary_text);
    font-size: 1rem;
}

.login-form {
    width: 100%;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--label-color);
}

.password-label {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.forgot-password {
    font-size: 0.75rem;
    color: var(--link-color);
    text-decoration: none;
}

.forgot-password:hover {
    color: var(--link-hover-color);
    text-decoration: underline;
}

.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.input-icon {
    position: absolute;
    left: 1rem;
    color: var(--input-icon);
    display: flex;
    align-items: center;
    justify-content: center;
}

.input-icon svg {
    width: 1.25rem;
    height: 1.25rem;
    stroke-width: 1.5;
}

.input-wrapper input {
    width: 100%;
    padding: 1rem 1rem 1rem 3rem;
    font-size: 1rem;
    background-color: var(--input-bg);
    color: var(--input-text);
    border: 1px solid var(--input-border);
    border-radius: 0.75rem;
    outline: none;
}

.input-wrapper input::placeholder {
    color: var(--input-placeholder);
}

.input-wrapper input:focus {
    border-color: var(--input-focus-border);
    box-shadow: 0 0 0 3px rgba(65, 123, 214, 0.15);
}

.toggle-password {
    position: absolute;
    right: 1rem;
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--input-icon);
    padding: 0;
}

.toggle-password:hover {
    color: var(--link-color);
}

.toggle-password svg {
    width: 1.25rem;
    height: 1.25rem;
}

.toggle-password .hidden {
    display: none;
}

.remember-me {
    margin-bottom: 1.5rem;
}

.checkbox-container {
    display: flex;
    align-items: center;
    position: relative;
    cursor: pointer;
    user-select: none;
}

.checkbox-container input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.checkmark {
    position: relative;
    height: 1.25rem;
    width: 1.25rem;
    background-color: var(--checkbox-bg);
    border: 1px solid var(--checkbox-border);
    border-radius: 0.25rem;
}

.checkbox-container:hover input ~ .checkmark {
    border-color: var(--input-focus-border);
}

.checkbox-container input:checked ~ .checkmark {
    background-color: var(--checkbox-checked-bg);
    border-color: var(--checkbox-checked-bg);
}

.checkmark:after {
    content: "";
    position: absolute;
    display: none;
    left: 0.4rem;
    top: 0.2rem;
    width: 0.3rem;
    height: 0.6rem;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.checkbox-container input:checked ~ .checkmark:after {
    display: block;
}

.checkbox-label {
    margin-left: 0.75rem;
    font-size: 0.875rem;
    color: var(--secondary_text);
}

.login-button {
    width: 100%;
    padding: 1rem;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background-color: var(--button-bg);
    color: var(--button-text);
    border: none;
    border-radius: 0.75rem;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.login-button:hover {
    background-color: var(--button-hover-bg);
}

.login-button:active {
    transform: scale(0.98);
}

.login-button svg {
    width: 1.25rem;
    height: 1.25rem;
}

.login-button:hover svg {
    transform: translateX(4px);
}

.login-button::after {
    content: "";
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: -100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.2),
        transparent
    );
}

.login-button:hover::after {
    left: 100%;
}

.register-link {
    text-align: center;
}

.register-link p {
    font-size: 0.875rem;
    color: var(--secondary_text);
}

.register-link a {
    color: var(--link-color);
    text-decoration: none;
    font-weight: 600;
}

.register-link a:hover {
    color: var(--link-hover-color);
    text-decoration: underline;
}

@keyframes input-focus-pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(65, 123, 214, 0.4);
    }
    70% {
        box-shadow: 0 0 0 5px rgba(65, 123, 214, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(65, 123, 214, 0);
    }
}

.input-wrapper input:focus {
    animation: input-focus-pulse 1.5s infinite;
}

@media (max-width: 500px) {
    .login-card {
        padding: 2rem 1.5rem;
    }

    .login-header h1 {
        font-size: 1.75rem;
    }

    .input-wrapper input {
        padding: 0.875rem 0.875rem 0.875rem 2.75rem;
    }
}

@media (max-width: 350px) {
    .login-card {
        padding: 1.5rem 1rem;
    }

    .login-header h1 {
        font-size: 1.5rem;
    }
}

.profile-container {
    padding: 1.5rem;
}

.profile-header {
    margin-bottom: 2rem;
    text-align: center;
}

.profile-header h1 {
    font-size: 2.25rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--text);
}

.profile-header p {
    color: var(--secondary_text);
    font-size: 1.1rem;
}

.profile-content {
    display: flex;
    gap: 2rem;
    min-height: 600px;
}

.profile-sidebar {
    background-color: var(--profile-sidebar-bg);
    border-radius: 1.2rem;
    overflow: hidden;
    box-shadow: var(--profile-card-shadow);
    display: flex;
    flex-direction: column;
}

.profile-picture-container {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background-color: var(--profile-card-bg);
    border-bottom: 1px solid var(--section-border);
}

.profile-picture {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid var(--profile-card-bg);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    margin-bottom: 1.5rem;
}

.profile-picture-actions {
    display: flex;
    justify-content: center;
    width: 100%;
    gap: 0.75rem;
}

.profile-navigation {
    padding: 1.5rem 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    flex-grow: 1;
}

.profile-nav-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem;
    border-radius: 0.75rem;
    background: transparent;
    border: none;
    cursor: pointer;
    color: var(--profile-nav-text);
    text-align: left;
    font-size: 1rem;
}

.profile-nav-item svg {
    width: 1.25rem;
    height: 1.25rem;
    stroke-width: 2;
}

.profile-nav-item:hover {
    background-color: var(--profile-nav-hover);
}

.profile-nav-item.active {
    background-color: var(--profile-nav-active-bg);
    color: var(--profile-nav-active-text);
    font-weight: 500;
}

.profile-main {
    flex: 1;
    background-color: var(--profile-card-bg);
    border-radius: 1.2rem;
    box-shadow: var(--profile-card-shadow);
    overflow: hidden;
}

.profile-section {
    display: none;
    padding: 2rem;
}

.profile-section.active {
    display: block;
    height: 100%;
}

.section-header {
    border-bottom: 1px solid var(--section-header-border);
    margin-bottom: 1rem;
}

.section-header h2 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text);
}

.section-header p {
    color: var(--secondary_text);
    font-size: 0.95rem;
}

.section-header.danger h2 {
    color: var(--danger-zone-text);
}

.profile-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-actions {
    display: flex;
    align-items: center;
    margin-top: 1rem;
    gap: 1rem;
}

.btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    border-radius: 0.75rem;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    border: none;
    white-space: nowrap;
}

.btn svg {
    width: 1.25rem;
    height: 1.25rem;
}

.btn:active {
    transform: scale(0.98);
}

.btn-primary {
    background-color: var(--btn-primary-bg);
    color: var(--btn-primary-text);
}

.btn-primary:hover {
    background-color: var(--btn-primary-hover);
}

.btn-secondary {
    background-color: var(--btn-secondary-bg);
    color: var(--btn-secondary-text);
}

.btn-secondary:hover {
    background-color: var(--btn-secondary-hover);
}

.btn-danger {
    background-color: var(--btn-danger-bg);
    color: var(--btn-danger-text);
}

.btn-danger:hover {
    background-color: var(--btn-danger-hover);
}

.btn-text {
    background: none;
    color: var(--link-color);
    padding: 0;
    font-weight: 500;
    text-decoration: underline;
}

.btn-text:hover {
    color: var(--link-hover-color);
}

.status-message {
    background-color: var(--status-success-bg);
    color: var(--status-success-text);
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    font-size: 0.875rem;
}

.status-message.fade-out {
    opacity: 0;
}

.verification-notice {
    margin-top: 0.75rem;
    background-color: var(--verification-bg);
    border: 1px solid var(--verification-border);
    border-radius: 0.5rem;
    padding: 0.75rem;
}

.verification-notice p {
    margin: 0 0 0.5rem 0;
    color: var(--verification-text);
    font-size: 0.875rem;
}

.verification-sent {
    margin-top: 0.5rem;
    color: var(--status-success-text) !important;
    font-weight: 500;
}

.password-requirements {
    background-color: var(--profile-sidebar-bg);
    border-radius: 0.75rem;
    padding: 1rem;
    margin-bottom: 1rem;
}

.password-requirements h4 {
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text);
}

.password-requirements ul {
    margin: 0;
    padding-left: 1.5rem;
    font-size: 0.815rem;
    color: var(--secondary_text);
}

.password-requirements li {
    margin-bottom: 0.25rem;
    list-style-type: disc;
}

.danger-box {
    background-color: var(--danger-zone-bg);
    border: 1px solid var(--danger-zone-border);
    border-radius: 0.75rem;
    padding: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
}

.danger-content h3 {
    color: var(--danger-zone-text);
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.danger-content p {
    color: var(--secondary_text);
    font-size: 0.95rem;
    margin: 0;
}

.modal {
    display: none;
    align-items: center;
    justify-content: center;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1000;
}

.modal.show {
    display: flex;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
}

.modal-container {
    border-radius: 1rem;
    position: relative;
    width: 50%;
    background-color: var(--card);
    box-shadow: 0 4px 25px rgba(0, 0, 0, 0.2);
}

.modal-header {
    padding: 1.5rem;
    border-bottom: 1px solid var(--modal-border);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.modal-header h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin: 0;
    color: var(--text);
}

.modal-close {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--secondary_text);
    display: flex;
    padding: 0.5rem;
    border-radius: 50%;
}

.modal-close:hover {
    background-color: var(--profile-nav-hover);
}

.modal-close svg {
    width: 1.25rem;
    height: 1.25rem;
}

.modal-content {
    padding: 1.5rem;
}

.modal-warning {
    display: flex;
    align-items: center;
    gap: 1rem;
    background-color: var(--danger-zone-bg);
    padding: 1rem;
    border-radius: 0.75rem;
    margin-bottom: 1.5rem;
}

.modal-warning svg {
    width: 2rem;
    height: 2rem;
    color: var(--danger-zone-text);
    flex-shrink: 0;
}

.modal-warning p {
    margin: 0;
    font-weight: 600;
    color: var(--danger-zone-text);
}

.modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
    margin-top: 1.5rem;
}

.reset-pass-error {
    position: absolute;
    top: 50px;
    left: 15px;
    padding: 0.5rem;
    background-color: var(--input-bg);
    color: #c7372f;
    margin: 0;
    border: 1px solid var(--input-border);
    border-radius: 0rem 0rem 0.75rem 0.75rem;
    z-index: 2;
    border-top: none;
}

@media screen and (max-width: 1024px) {
    .profile-content {
        flex-direction: column;
    }

    .profile-sidebar {
        flex: 0 0 auto;
        width: 100%;
    }

    .profile-picture-container {
        padding: 1.5rem;
    }

    .profile-picture {
        width: 120px;
        height: 120px;
    }

    .profile-navigation {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
    }

    .profile-nav-item {
        flex: 1 1 auto;
        min-width: 150px;
        justify-content: center;
    }
}

@media screen and (max-width: 768px) {
    .profile-header h1 {
        font-size: 1.75rem;
    }

    .profile-section {
        padding: 1.5rem;
    }

    .danger-box {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
    }
}

@media screen and (max-width: 600px) {
    .profile-nav-item {
        min-width: 120px;
        padding: 0.75rem;
    }

    .profile-picture-actions {
        flex-direction: column;
    }
}

.hidden {
    display: none !important;
}
