/* 
   =====================================
   MINIMORPHIC — login page styles [CSS]
   =====================================
    */

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: linear-gradient(135deg, #f5e6d3 0%, #e8d4c0 100%);
    padding: 20px;
}

.container {
    display: flex;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(120, 80, 50, 0.15);
    max-width: 900px;
    width: 100%;
}

.left {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    padding: 60px 40px;
    background: linear-gradient(135deg, #f9f3eb 0%, #f0e5d8 100%);
}

.bar {
    width: 32px;
    height: 140px;
    border-radius: 16px;
    position: relative;
    transition: transform .3s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 0 4px 16px rgba(0, 0, 0, .08);
}

.b1 {
    background: linear-gradient(135deg, #f4a6b4 0%, #e88b9a 100%);
}

.b2 {
    background: linear-gradient(135deg, #b8daf0 0%, #9ecde6 100%);
}

.b3 {
    background: linear-gradient(135deg, #c9e8bd 0%, #b7dfaa 100%);
}

.b4 {
    background: linear-gradient(135deg, #f7d4a8 0%, #f2c28f 100%);
}

.eyes {
    position: absolute;
    top: 36px;
    width: 100%;
    display: flex;
    justify-content: center;
    gap: 7px;
}

.eye {
    width: 8px;
    height: 8px;
    background: #2c2c2c;
    border-radius: 50%;
    transition: transform .15s ease;
}

.right {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px 50px;
}

.box {
    width: 100%;
    max-width: 340px;
}

h1 {
    font-weight: 300;
    letter-spacing: .3em;
    font-size: 22px;
    margin: 0 0 8px 0;
    color: #8b6f47;
    text-align: center;
}

.subtitle {
    text-align: center;
    color: #a89080;
    font-size: 13px;
    margin-bottom: 36px;
    font-weight: 400;
}

.form-group {
    margin-bottom: 16px;
}

label {
    display: block;
    font-size: 12px;
    font-weight: 500;
    color: #8b6f47;
    margin-bottom: 6px;
    letter-spacing: .02em;
}

input {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid #e8ddd0;
    background: #fdfbf8;
    font-size: 15px;
    outline: none;
    border-radius: 10px;
    transition: all .2s ease;
    color: #3c3c3c;
    font-family: inherit;
}

input:focus {
    border-color: #d4a574;
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(212, 165, 116, 0.1);
}

input::placeholder {
    color: #b8a899;
}

.row {
    position: relative;
}

.toggle {
    position: absolute;
    right: 14px;
    top: 14px;
    font-size: 12px;
    color: #a89080;
    cursor: pointer;
    user-select: none;
    font-weight: 500;
    padding: 4px 8px;
    border-radius: 6px;
    transition: all .2s ease;
}

.toggle:hover {
    background: rgba(212, 165, 116, 0.1);
    color: #8b6f47;
}

button {
    width: 100%;
    padding: 14px;
    border: none;
    background: linear-gradient(135deg, #d4a574 0%, #c89563 100%);
    color: white;
    cursor: pointer;
    font-size: 15px;
    font-weight: 600;
    border-radius: 10px;
    transition: all .3s ease;
    box-shadow: 0 4px 12px rgba(200, 149, 99, 0.3);
    letter-spacing: .03em;
}

button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(200, 149, 99, 0.4);
}

button:active {
    transform: translateY(0);
}

.secondary-btn {
    background: transparent;
    color: #a89080;
    box-shadow: none;
    border: 2px solid #e8ddd0;
    font-weight: 500;
    margin-top: 10px;
}

.secondary-btn:hover {
    background: #fdfbf8;
    border-color: #d4a574;
    color: #8b6f47;
    transform: none;
    box-shadow: none;
}

.msg {
    margin-top: 16px;
    color: #c89563;
    font-size: 13px;
    text-align: center;
    padding: 10px;
    border-radius: 8px;
    font-weight: 500;
}

.msg.error {
    background: rgba(232, 139, 154, 0.15);
    color: #d45a66;
}

.msg.success {
    background: rgba(183, 223, 170, 0.15);
    color: #6b9e5a;
}

.divider {
    text-align: center;
    margin: 24px 0 20px 0;
    color: #b8a899;
    font-size: 12px;
    position: relative;
}

.divider:before,
.divider:after {
    content: '';
    position: absolute;
    top: 50%;
    width: 40%;
    height: 1px;
    background: #e8ddd0;
}

.divider:before {
    left: 0;
}

.divider:after {
    right: 0;
}

.password-requirements {
    background: #fdfbf8;
    border: 1px solid #e8ddd0;
    border-radius: 8px;
    padding: 12px;
    margin-top: 12px;
    font-size: 12px;
    color: #8b6f47;
}

.password-requirements ul {
    margin: 8px 0 0 0;
    padding-left: 18px;
}

.password-requirements li {
    margin: 4px 0;
    color: #a89080;
}

.password-requirements li.valid {
    color: #6b9e5a;
}

.back-link {
    text-align: center;
    margin-top: 16px;
    font-size: 13px;
}

.back-link a {
    color: #a89080;
    text-decoration: none;
    font-weight: 500;
    transition: color .2s ease;
}

.back-link a:hover {
    color: #8b6f47;
}

@media (max-width: 768px) {
    .container {
        flex-direction: column;
    }

    .left {
        padding: 40px 20px;
    }

    .right {
        padding: 40px 30px;
    }

    .bar {
        width: 28px;
        height: 120px;
    }
}