

/* Login card */

.login-card {
    width: 100%;
    max-width: 660px;
    padding: 30px 44px 34px;
    border: 1px solid rgba(233, 240, 249, .95);
    border-radius: 18px;
    background: rgba(255, 255, 255, .96);
    box-shadow: 0 12px 38px rgba(43, 77, 115, .12);
    text-align: center;
    animation: card-enter .4s ease-out both;
}

/* Envelope illustration */

.illustration {
    position: relative;
    display: grid;
    place-items: center;
    width: 300px;
    height: 205px;
    max-width: 100%;
    margin: 0 auto 4px;
}

.illustration-circle {
    position: absolute;
    width: 210px;
    height: 210px;
    border-radius: 50%;
    background: radial-gradient( circle, #f1f8ff 0%, #f5faff 68%, rgba(255, 255, 255, 0) 100% );
}

.envelope {
    position: absolute;
    z-index: 1;
    top: 49px;
    left: 50%;
    width: 155px;
    height: 112px;
    transform: translateX(-50%);
    filter: drop-shadow(0 9px 9px rgba(0, 120, 212, .10));
}

.mini-ms-logo {
    position: absolute;
    z-index: 2;
    top: 34px;
    left: calc(50% + 49px);
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 5px;
    width: 48px;
    height: 48px;
}

    .mini-ms-logo span {
        border-radius: 2px;
    }

        .mini-ms-logo span:nth-child(1) {
            background: #f25022;
        }

        .mini-ms-logo span:nth-child(2) {
            background: #7fba00;
        }

        .mini-ms-logo span:nth-child(3) {
            background: #00a4ef;
        }

        .mini-ms-logo span:nth-child(4) {
            background: #ffb900;
        }

.dot {
    position: absolute;
    z-index: 1;
    border-radius: 50%;
    background: #b7dcff;
}

.dot-left {
    top: 61px;
    left: 35px;
    width: 16px;
    height: 16px;
}

.dot-right {
    top: 57px;
    right: 28px;
    width: 10px;
    height: 10px;
    background: #e7f3ff;
}

.dot-bottom {
    bottom: 22px;
    left: 19px;
    width: 70px;
    height: 70px;
    background: rgba(221, 239, 255, .36);
}

.paper-plane {
    position: absolute;
    z-index: 3;
    top: 93px;
    right: 4px;
    width: 36px;
    height: 36px;
    transform: rotate(5deg);
}

.flight-path {
    position: absolute;
    z-index: 0;
    top: 103px;
    right: 7px;
    width: 112px;
    height: 72px;
}

.login-card h1 {
    margin: 5px 0 13px;
    font-size: clamp(25px, 3vw, 37px);
    font-weight: 650;
    line-height: 1.22;
    letter-spacing: -.8px;
}

.description {
    margin: 0 auto 34px;
    color: var(--muted);
    font-size: clamp(14px, 1.5vw, 19px);
    line-height: 1.6;
}

/* Sign-in button */

.login-button {
    text-decoration: none;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 13px;
    width: 100%;
    min-height: 62px;
    padding: 16px 20px;
    border: 1px solid #0078d4;
    border-radius: 12px;
    background: #0078d4;
    box-shadow: 0 8px 18px rgba(0, 120, 212, .13);
    color: #fff;
    font-size: 21px;
    font-weight: 600;
    transition: background .2s ease, box-shadow .2s ease, transform .2s ease;
}

    .login-button:hover {
        background: #0067b8;
        border-color: #0067b8;
        box-shadow: 0 10px 22px rgba(0, 103, 184, .22);
    }

    .login-button:active {
        transform: translateY(1px);
    }

.button-logo {
    width: 22px;
    height: 22px;
}

/* Divider and security text */

.divider {
    height: 1px;
    margin: 25px 0 19px;
    background: var(--border);
}

.security-note {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    color: #657791;
    font-size: 14px;
    line-height: 1.5;
}

    .security-note svg {
        flex: 0 0 26px;
        width: 26px;
        height: 26px;
        fill: none;
        stroke: var(--primary);
        stroke-linecap: round;
        stroke-linejoin: round;
    }




/* Compact desktop and laptop screens */

@media (max-height: 760px) and (min-width: 601px) {
    .header {
        min-height: 60px;
    }

    .main {
        padding-top: 12px;
        padding-bottom: 12px;
    }

    .login-card {
        padding: 18px 36px 20px;
    }

    .illustration {
        height: 130px;
        margin-bottom: 3px;
    }

    .illustration-circle {
        width: 130px;
        height: 130px;
    }

    .envelope {
        top: 31px;
        width: 110px;
        height: 85px;
    }

    .mini-ms-logo {
        top: 16px;
        left: calc(50% + 35px);
        width: 36px;
        height: 36px;
        gap: 3px;
    }

    .dot-left {
        top: 35px;
    }

    .dot-right {
        top: 31px;
    }

    .dot-bottom {
        width: 45px;
        height: 45px;
        bottom: 12px;
    }

    .paper-plane {
        top: 63px;
        width: 28px;
        height: 28px;
    }

    .flight-path {
        top: 69px;
        width: 82px;
        height: 50px;
    }

    .login-card h1 {
        margin-top: 4px;
        margin-bottom: 9px;
        font-size: 29px;
    }

    .description {
        margin-bottom: 20px;
        font-size: 15px;
    }

    .login-button {
        min-height: 56px;
        font-size: 18px;
    }

    .divider {
        margin: 17px 0 13px;
    }

    .footer {
        min-height: 48px;
    }
}

/* Mobile */

@media (max-width: 600px) {
    .header {
        min-height: 62px;
        padding: 0 16px;
        gap: 10px;
    }

    .brand {
        gap: 8px;
        font-size: clamp(15px, 4vw, 20px);
        letter-spacing: -.3px;
    }

        .brand .ms-logo {
            width: 22px;
            height: 22px;
        }

    .secure-badge {
        gap: 5px;
        padding: 8px 9px;
        font-size: 10px;
    }

        .secure-badge svg {
            width: 15px;
            height: 15px;
        }

    .main {
        padding: 22px 15px;
    }

    .login-card {
        max-width: 440px;
        padding: 23px 21px 25px;
        border-radius: 15px;
    }

    .illustration {
        height: 125px;
        margin-bottom: 7px;
    }

    .illustration-circle {
        width: 125px;
        height: 125px;
    }

    .envelope {
        top: 28px;
        width: 110px;
        height: 85px;
    }

    .mini-ms-logo {
        top: 15px;
        left: calc(50% + 34px);
        width: 34px;
        height: 34px;
        gap: 3px;
    }

    .dot-left {
        top: 34px;
        left: 26px;
    }

    .dot-right {
        top: 31px;
        right: 23px;
    }

    .dot-bottom {
        width: 42px;
        height: 42px;
        bottom: 10px;
        left: 13px;
    }

    .paper-plane {
        top: 61px;
        right: 3px;
        width: 27px;
        height: 27px;
    }

    .flight-path {
        top: 69px;
        right: 0;
        width: 82px;
        height: 48px;
    }

    .login-card h1 {
        margin: 4px 0 11px;
        font-size: 26px;
        letter-spacing: -.5px;
    }

    .description {
        margin-bottom: 23px;
        font-size: 14px;
    }

    .login-button {
        min-height: 55px;
        gap: 10px;
        padding: 12px;
        border-radius: 9px;
        font-size: 15px;
    }

    .divider {
        margin: 20px 0 15px;
    }

    .security-note {
        gap: 8px;
        font-size: 11px;
    }

        .security-note svg {
            flex-basis: 22px;
            width: 22px;
            height: 22px;
        }

    .footer {
        min-height: 52px;
        padding: 12px 16px;
        gap: 12px;
        font-size: 10px;
    }

        .footer nav {
            gap: 12px;
        }
}


/*contacnt page*/
/* =========================
   Content
   ========================= */

.outlook-content {
    flex: 1;
    background: white;
    overflow: auto;
    min-width: 0;
    min-height: 0;
}
/* =========================================
   CONTACTS
   ========================================= */

.contacts-page {
    padding: 24px;
    height: 100%;
    overflow-y: auto;
    background: #f8f9fa;
}


/* Header */

.contacts-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

    .contacts-header h2 {
        margin: 0;
        font-size: 24px;
        font-weight: 600;
        color: #323130;
    }

.contacts-count {
    display: block;
    margin-top: 4px;
    color: #605e5c;
    font-size: 13px;
}


/* New button */

.contact-new-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 16px;
    background: #0078d4;
    color: white;
    border-radius: 4px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    border: none;
    cursor: pointer;
}

    .contact-new-button:hover {
        background: #106ebe;
        color: white;
    }

    .contact-new-button span {
        font-size: 20px;
    }


/* Filters */

.contacts-filters {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px;
    background: white;
    border: 1px solid #edebe9;
    border-radius: 6px;
    margin-bottom: 16px;
}

.contact-search {
    position: relative;
    flex: 1;
}

    .contact-search input {
        width: 100%;
        height: 38px;
        padding: 0 12px 0 36px;
        border: 1px solid #c8c6c4;
        border-radius: 4px;
        outline: none;
    }

        .contact-search input:focus,
        .contact-filter:focus,
        .form-control:focus {
            border-color: #0078d4;
            box-shadow: 0 0 0 1px #0078d4;
        }

.search-icon {
    position: absolute;
    left: 12px;
    top: 9px;
    font-size: 18px;
    color: #605e5c;
}

.contact-filter {
    height: 38px;
    padding: 0 10px;
    min-width: 150px;
    border: 1px solid #c8c6c4;
    border-radius: 4px;
    background: white;
}

.contact-filter-button {
    height: 38px;
    padding: 0 16px;
    background: #0078d4;
    border: none;
    color: white;
    border-radius: 4px;
    cursor: pointer;
}

.contact-clear-button {
    color: #0078d4;
    text-decoration: none;
    padding: 8px;
}


/* Table */

.contacts-table-container {
    background: white;
    border: 1px solid #edebe9;
    border-radius: 6px;
    overflow-x: auto;
}

.contacts-table {
    width: 100%;
    border-collapse: collapse;
}

    .contacts-table th {
        height: 44px;
        padding: 0 16px;
        text-align: left;
        background: #faf9f8;
        border-bottom: 1px solid #edebe9;
        color: #605e5c;
        font-size: 12px;
        font-weight: 600;
    }

    .contacts-table td {
        padding: 12px 16px;
        border-bottom: 1px solid #edebe9;
        font-size: 14px;
        color: #323130;
    }

    .contacts-table tbody tr:hover {
        background: #f3f9fd;
    }


/* Contact name */

.contact-name-cell {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
}

.contact-avatar {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #e1dfdd;
    color: #323130;
    font-size: 13px;
}

.contact-email {
    color: #0078d4;
}

.contact-description {
    color: #605e5c;
}


/* Badges */

.contact-type-badge {
    display: inline-block;
    padding: 4px 9px;
    border-radius: 12px;
    background: #f3f2f1;
    color: #323130;
    font-size: 12px;
}

.status-badge {
    display: inline-block;
    padding: 4px 9px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
}

    .status-badge.active {
        background: #dff6dd;
        color: #107c10;
    }

    .status-badge.inactive {
        background: #fde7e9;
        color: #a4262c;
    }


/* Actions */

.action-column {
    white-space: nowrap;
    text-align: right !important;
}

.contact-action {
    border: none;
    background: none;
    cursor: pointer;
    text-decoration: none;
    font-size: 13px;
    margin-left: 10px;
}

    .contact-action.edit {
        color: #0078d4;
    }

    .contact-action.delete {
        color: #a4262c;
    }

.delete-form {
    display: inline;
}


/* Empty */

.no-contacts {
    padding: 60px !important;
}

.empty-contacts {
    text-align: center;
    color: #605e5c;
}

.empty-icon {
    font-size: 42px;
    margin-bottom: 10px;
}

.empty-contacts h3 {
    color: #323130;
    margin-bottom: 6px;
}

.empty-contacts p {
    margin-bottom: 20px;
}


/* Pagination */

.contacts-pagination {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 4px;
}

.pagination-info {
    color: #605e5c;
    font-size: 13px;
}

.pagination-buttons {
    display: flex;
    gap: 4px;
}

.page-button {
    min-width: 32px;
    height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #edebe9;
    background: white;
    color: #323130;
    text-decoration: none;
    border-radius: 3px;
}

    .page-button:hover,
    .page-button.active {
        background: #e5f1fb;
        color: #0078d4;
        border-color: #0078d4;
    }


/* =========================================
   CONTACT FORM
   ========================================= */

.contact-form-page {
    padding: 28px;
    margin: auto;
}

.contact-form-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

    .contact-form-header h2 {
        margin: 0;
        color: #323130;
    }

    .contact-form-header p {
        margin-top: 5px;
        color: #605e5c;
    }

.contact-back-button {
    color: #0078d4;
    text-decoration: none;
}

.contact-form {
    background: white;
    padding: 28px;
    border: 1px solid #edebe9;
    border-radius: 6px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-group {
    margin-bottom: 20px;
}

    .form-group label {
        display: block;
        margin-bottom: 7px;
        color: #323130;
        font-size: 13px;
        font-weight: 600;
    }

.form-control {
    width: 100%;
    min-height: 38px;
    padding: 8px 10px;
    border: 1px solid #c8c6c4;
    border-radius: 4px;
    outline: none;
    box-sizing: border-box;
}

textarea.form-control {
    resize: vertical;
}

.toggle-wrapper {
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 38px;
}

.status-checkbox {
    width: 18px;
    height: 18px;
}

.contact-form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    border-top: 1px solid #edebe9;
    padding-top: 20px;
}

.cancel-button {
    padding: 9px 18px;
    border: 1px solid #c8c6c4;
    border-radius: 4px;
    color: #323130;
    text-decoration: none;
}

.save-contact-button {
    padding: 9px 18px;
    border: none;
    border-radius: 4px;
    background: #0078d4;
    color: white;
    cursor: pointer;
    font-weight: 600;
}

    .save-contact-button:hover {
        background: #106ebe;
    }


/* Validation */

.validation-summary,
.field-validation {
    color: #a4262c;
    font-size: 13px;
}

.email-service-warning {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 5px 5px;
    margin: 10px 10px;
    background: #fff4f2;
    border: 1px solid #e8b4ad;
    border-left: 4px solid #c9372c;
    border-radius: 8px;
    color: #7a271a;
}

.email-service-warning-icon {
    font-size: 22px;
    padding-top: 2px;
}

.email-service-warning-content h5 {
    margin: 0 0 6px;
    font-size: 16px;
    font-weight: 600;
}

.email-service-warning-content p {
    margin: 0;
    font-size: 14px;
    line-height: 1.6;
}

/* Extra-short mobile screens */

@media (max-height: 600px) and (max-width: 600px) {
    .header {
        min-height: 52px;
    }

    .main {
        padding-top: 10px;
        padding-bottom: 10px;
    }

    .login-card {
        padding-top: 12px;
        padding-bottom: 14px;
    }

    .illustration {
        height: 75px;
        margin-bottom: 3px;
    }

    .illustration-circle {
        width: 75px;
        height: 75px;
    }

    .envelope {
        top: 13px;
        width: 75px;
        height: 60px;
    }

    .mini-ms-logo {
        top: 6px;
        left: calc(50% + 24px);
        width: 24px;
        height: 24px;
    }

    .dot,
    .paper-plane,
    .flight-path {
        display: none;
    }

    .login-card h1 {
        font-size: 22px;
        margin-bottom: 6px;
    }

    .description {
        margin-bottom: 12px;
    }

    .login-button {
        min-height: 46px;
    }

    .divider {
        margin: 12px 0;
    }

    .footer {
        min-height: 40px;
    }
}


/* Reduced motion preference */

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation: none !important;
        transition: none !important;
    }
}

@keyframes card-enter {
    from {
        opacity: 0;
        transform: translateY(8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive layout */
@media (max-width: 700px) {
    .authenticated-layout .outlook-sidebar {
        flex-basis: 175px;
        width: 175px;
        min-width: 175px;
        padding: 12px 6px;
    }

    .authenticated-layout .mail-nav-item {
        gap: 8px;
        padding: 0 8px;
        font-size: 12px;
    }
}

.contacts-header { gap: 10px; }
.contacts-header-actions { display: flex; align-items: center; gap: 10px; }
.contact-import-button { display: inline-flex; align-items: center; padding: 9px 16px; background: #fff; color: #0078d4; border: 1px solid #0078d4; border-radius: 4px; font-size: 14px; font-weight: 600; cursor: pointer; }
.contact-import-overlay { display: none; position: fixed; inset: 0; z-index: 2000; align-items: center; justify-content: center; padding: 20px; background: rgba(20, 28, 40, .48); }
.contact-import-overlay.open { display: flex; }
.contact-import-modal { position: relative; width: min(100%, 520px); max-height: 90vh; overflow-y: auto; padding: 28px; background: #fff; border: 1px solid #edebe9; border-radius: 8px; box-shadow: 0 12px 36px rgba(0, 0, 0, .2); }
.contact-import-modal h2 { margin: 0 32px 6px 0; color: #323130; font-size: 22px; }
.contact-import-subtitle { margin: 0 0 18px; color: #605e5c; font-size: 14px; }
.contact-import-close { position: absolute; top: 12px; right: 16px; border: 0; background: none; color: #605e5c; font-size: 26px; cursor: pointer; }
.contact-template-link { display: inline-block; margin-bottom: 20px; color: #0078d4; font-size: 14px; font-weight: 600; }
.contact-import-modal form { display: flex; flex-direction: column; gap: 8px; }
.contact-import-modal label { margin-top: 8px; color: #323130; font-size: 13px; font-weight: 600; }
.contact-import-modal label span { color: #a4262c; }
.contact-import-modal select, .contact-import-modal input[type="file"] { width: 100%; min-height: 40px; padding: 8px 10px; border: 1px solid #c8c6c4; border-radius: 4px; background: #fff; color: #323130; }
.contact-import-modal small { color: #605e5c; font-size: 12px; }
.contact-import-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 18px; }
.contact-import-cancel, .contact-import-submit { padding: 9px 16px; border-radius: 4px; font-size: 14px; font-weight: 600; cursor: pointer; }
.contact-import-cancel { border: 1px solid #c8c6c4; background: #fff; color: #323130; }
.contact-import-submit { border: 1px solid #0078d4; background: #0078d4; color: #fff; }
.contact-import-message { margin: 0 0 16px; padding: 12px 16px; border-radius: 4px; font-size: 14px; }
.contact-import-message.error { background: #fde7e9; color: #a4262c; }
.contact-import-message.success { background: #dff6dd; color: #107c10; }
@media (max-width: 600px) { .contacts-header { align-items: flex-start; flex-direction: column; } .contacts-header-actions { width: 100%; flex-wrap: wrap; } }
