/* Reset */
* { 
    border:0; 
    margin:0; 
    padding:0; 
    -moz-box-sizing:border-box; 
    -webkit-box-sizing:border-box; 
    box-sizing:border-box; 
}

/* Shopify Fonts */
@font-face {
    font-family: 'ShopifySans';
    src: url('//cdn.shopify.com/shopify-marketing_assets/static/ShopifySans--regular.woff');
    font-style: normal;
    font-weight: 400;
}

@font-face {
    font-family: 'ShopifySans';
    src: url('//cdn.shopify.com/shopify-marketing_assets/static/ShopifySans--bold.woff2');
    font-style: normal;
    font-weight: 700;
}

/* Base Styles */
html, body {
    height:100%;
    border:0;
    margin:0;
    padding:0;
    font-family: ShopifySans, -apple-system, BlinkMacSystemFont, San Francisco, Segoe UI, Roboto, Helvetica Neue, sans-serif;
    font-size: 62.5%;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-size-adjust: 100%;
    text-rendering: optimizeLegibility;
    background:#fff;
}

body { 
    min-height:100%; 
    font-size:16px; 
    line-height:22px; 
    color: #212b36; 
}

/* Login Wrapper */
.login-wrapper {
    box-sizing: border-box;
    max-width: calc(410px + 4rem);
    min-height: calc(100vh - 5rem);
    margin: 0 auto;
    padding: 0 2rem;
    padding-top: 15vh;
}

/* Logo Section - FIXED SIZE */
.login-hero { 
    margin-bottom: 40px;
    text-align: center;
}

.login-hero img {
    max-width: 300px;
    width: 100%;
    height: auto;
}

/* Form Styles */
.login-content {
    width: 100%;
}

.login-content-block {
    width: 100%;
}

.login-form-section { 
    display: flex; 
    flex-direction: column; 
    flex-wrap: wrap; 
    margin: -8px; 
}

.login-form-wrapper { 
    box-sizing: border-box; 
    margin: 0; 
    display: flex; 
    flex-direction: column; 
    padding: 8px; 
}

.login-label-wrapper { 
    align-items: baseline; 
    display: flex; 
    flex-wrap: wrap; 
    justify-content: space-between; 
    margin: 0 -4px; 
}

.login-label-wrapper label { 
    font-size: 1.6rem; 
    line-height: 2.4rem; 
    margin-bottom: 0.4rem;
    font-weight: 400;
    color: #212b36;
}

.login-label-wrapper > * { 
    margin: 0 4px 4px 4px; 
}

/* Input Fields - FIXED STYLING */
.login-input {
    outline: none;
    max-height: 5.2rem;
    padding: 1.6rem;
    font-size: 1.6rem;
    border-color: #8996a3;
    box-shadow: 0 0 0 0.1rem transparent;
    min-width: 75px;
    height: auto;
    margin: 0;
    border: 1px solid #c4cdd5;
    border-radius: 3px;
    box-sizing: border-box;
    display: block;
    width: 100%;
    background-color: #f4f6f8;
    transition: box-shadow 100ms cubic-bezier(0.64, 0, 0.35, 1), 
                border-color 100ms cubic-bezier(0.64, 0, 0.35, 1),
                background-color 100ms cubic-bezier(0.64, 0, 0.35, 1);
}

.login-input:focus { 
    border-color: #108043; 
    box-shadow: 0 0 0 0.1rem #108043;
    background-color: #fff;
    outline: none;
}

.login-input.input-error { 
    background-color: #fbeae5; 
    border-color: #bf0711; 
}

.login-input.input-error:focus {
    background-color: #fbeae5;
}

/* Remember Me Checkbox */
.login-checkbox-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-size: 1.4rem;
    line-height: 2rem;
    color: #212b36;
    margin: 0;
    padding: 8px 0;
}

.login-checkbox-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin-right: 8px;
    cursor: pointer;
    border: 2px solid #c4cdd5;
    border-radius: 3px;
}

.login-checkbox-label input[type="checkbox"]:focus {
    outline: 2px solid #108043;
    outline-offset: 2px;
}

.login-checkbox-label input[type="checkbox"]:checked {
    background-color: #108043;
    border-color: #108043;
}

.login-checkbox-label span {
    user-select: none;
}

/* Submit Button */
.login-btn {
    display: inline-block;
    padding: 1.4em 1.8125em;
    border-radius: 4px;
    font-family: ShopifySans, Helvetica, Arial, sans-serif;
    font-weight: 700;
    font-size: 1.6rem;
    line-height: 1.133;
    -webkit-font-smoothing: antialiased;
    transition: 150ms ease;
    transition-property: background-color, border-color, box-shadow, color;
    text-align: center;
    -webkit-user-select: none;
    user-select: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    cursor: pointer;
    box-shadow: 0 5px 15px 0 rgba(0,0,0,0.15);
    background-color: #008060;
    color: #ffffff;
    border-width: 1px;
    border-style: solid;
    border-color: transparent;
    margin: 1.5rem 0 0 0;
    width: 100%;
}

.login-btn:hover, 
.login-btn:focus { 
    background-color: #004c3f; 
    box-shadow: 0 5px 25px 0 rgba(0,0,0,0.25); 
}

.login-btn:focus { 
    box-shadow: 0 0 0.1875em 0.1875em rgba(0,128,96,0.5); 
    text-decoration: none; 
    outline: 0; 
}

/* Success Messages */
.success-container { 
    margin-top: 1.2rem;
    margin-bottom: 0.8rem; 
}

.success-notification { 
    display: inline-flex;
    align-items: flex-start; 
}

.success-icon {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    margin-right: 8px;
    margin-top: 2px;
    fill: #108043;
}

.success-message { 
    color: #108043; 
    font-size: 1.5rem;
    line-height: 2rem; 
}

/* Error Messages */
.error-container { 
    margin-top: 1.2rem;
    margin-bottom: 0.8rem; 
}

.error-notification { 
    display: inline-flex;
    align-items: flex-start; 
}

.error-icon {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    margin-right: 8px;
    margin-top: 2px;
    fill: #de3618;
}

.error-message { 
    color: #bf0711; 
    font-size: 1.5rem;
    line-height: 2rem; 
}

/* Responsive */
@media (max-height: 1024px) and (max-width: 600px) {
    .login-wrapper {
        padding-top: 5vh;
    }
    
    .login-hero img {
        max-width: 250px;
    }
}

@media (max-width: 480px) {
    .login-wrapper {
        padding: 2rem 1.5rem;
        padding-top: 10vh;
    }
    
    .login-hero {
        margin-bottom: 30px;
    }
    
    .login-hero img {
        max-width: 200px;
    }
}