/* =====================================================
   Complaint Management System
   Login & Signup UI
   Part 2A - Layout & Forms
===================================================== */

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

*{
    margin:0;
    padding:0;
    box-sizing:border-box;
    font-family:'Poppins',sans-serif;
}

body{
    background:#23413f;
    min-height:100vh;
    display:flex;
    justify-content:center;
    align-items:center;
    padding:30px;
}

/*==============================
        Main Container
==============================*/

.container{

    width:100%;
    max-width:1250px;
    height:675px;

    display:flex;

    background:#ffffff;

    border-radius:30px;

    overflow:hidden;

    box-shadow:0 20px 50px rgba(0,0,0,.15);

}

/*==============================
        Left Panel
==============================*/

.left-panel{

    width:45%;

    background:#152d2b;

    color:#fff;

    position:relative;

    display:flex;

    justify-content:center;

    align-items:center;

    padding:60px;

}

.overlay{

    text-align:center;

}

.overlay h1{

    font-size:30px;

    font-weight:700;

    margin-bottom:25px;

    line-height:1;

}

.overlay p{

    font-size:14px;

    line-height:18px;

    margin-bottom:40px;

    opacity:.95;

}

.overlay img{

    width:100%;

    max-width:360px;

    display:block;

    margin:auto;

}

/*==============================
        Right Panel
==============================*/

.right-panel{

    width:55%;

    background:#fdfdfd;

    display:flex;

    justify-content:center;

    align-items:center;

    padding:60px;

}

/*==============================
          Form Card
==============================*/

.form-box{

    width:100%;

    max-width:430px;

}

.form-box h2{

    color:#23413f;

    font-size:34px;

    text-align:center;

    margin-bottom:8px;

}

.subtitle{

    text-align:center;

    color:#888;

    font-size:15px;

    margin-bottom:35px;

}

/*==============================
        Toggle Buttons
==============================*/

.toggle-buttons{

    width:100%;

    display:flex;

    background:#ececec;

    border-radius:50px;

    padding:5px;

    margin-bottom:35px;

}

.toggle-buttons button{

    width:50%;

    border:none;

    background:none;

    padding:14px;

    border-radius:50px;

    cursor:pointer;

    font-size:15px;

    font-weight:600;

    transition:.35s;

}

.toggle-buttons button.active{

    background:#23413f;

    color:#fff;

}

/*==============================
            Forms
==============================*/

form{

    width:100%;

    animation:fade .4s ease;

}

.hidden{

    display:none;

}

/*==============================
        Input Groups
==============================*/

.input-group{

    position:relative;

    margin-bottom:22px;

}

.input-group i{

    position:absolute;

    left:18px;

    top:50%;

    transform:translateY(-50%);

    color:#777;

    font-size:15px;

}

.input-group input{

    width:100%;

    height:56px;

    padding-left:50px;

    padding-right:18px;

    border:1px solid #d8d8d8;

    border-radius:12px;

    outline:none;

    font-size:15px;

    transition:.3s;

    background:#fff;

}

.input-group input:focus{

    border-color:#23413f;

    box-shadow:0 0 8px rgba(35,65,63,.15);

}

/*==============================
        Submit Button
==============================*/

.submit-btn{

    width:100%;

    height:56px;

    border:none;

    border-radius:12px;

    background:#23413f;

    color:#fff;

    font-size:16px;

    font-weight:600;

    cursor:pointer;

    transition:.35s;

    margin-top:5px;

}

.submit-btn:hover{

    background:#1b3331;

    transform:translateY(-2px);

}

.submit-btn:disabled{

    opacity:.7;

    cursor:not-allowed;

}

/*=====================================================
        Success & Error Messages
======================================================*/

.form-message{

    width:100%;

    display:none;

    margin-top:18px;

    padding:14px;

    border-radius:10px;

    font-size:14px;

    font-weight:500;

    text-align:center;

    animation:fade .4s ease;

}

.form-message.success{

    display:block;

    background:#e8f8ef;

    color:#198754;

    border:1px solid #b7e4c7;

}

.form-message.error{

    display:block;

    background:#fdecec;

    color:#dc3545;

    border:1px solid #f5c2c7;

}

/*=====================================================
        Loading Button
======================================================*/

.submit-btn.loading{

    pointer-events:none;

    opacity:.75;

}

/*=====================================================
        Input Hover
======================================================*/

.input-group input:hover{

    border-color:#23413f;

}

/*=====================================================
        Placeholder
======================================================*/

input::placeholder{

    color:#999;

}

/*=====================================================
        Smooth Animation
======================================================*/

@keyframes fade{

    from{

        opacity:0;

        transform:translateY(12px);

    }

    to{

        opacity:1;

        transform:translateY(0);

    }

}

/*=====================================================
        Floating Card Effect
======================================================*/

.form-box{

    animation:fade .6s ease;

}

/*=====================================================
        Left Image Hover
======================================================*/

.overlay img{

    transition:.4s;

}

.overlay img:hover{

    transform:scale(1.03);

}

/*=====================================================
        Button Hover
======================================================*/

.toggle-buttons button:hover{

    color:#23413f;

}

.toggle-buttons button.active:hover{

    color:#fff;

}

/*=====================================================
        Scrollbar
======================================================*/

::-webkit-scrollbar{

    width:8px;

}

::-webkit-scrollbar-thumb{

    background:#23413f;

    border-radius:10px;

}

/*=====================================================
            Tablet
======================================================*/

@media(max-width:992px){

.container{

    max-width:900px;

}

.left-panel{

    padding:40px;

}

.overlay h1{

    font-size:34px;

}

.overlay p{

    font-size:15px;

    line-height:26px;

}

.right-panel{

    padding:40px;

}

}

/*=====================================================
            Mobile
======================================================*/

@media(max-width:768px){

.container{

    flex-direction:column;

    min-height:auto;

}

.left-panel{

    width:100%;
    display: none;
    padding:40px 25px;

}

.right-panel{

    width:100%;

    padding:35px 20px;

}

.overlay img{

    max-width:250px;

}

.form-box{

    max-width:100%;

}

.form-box h2{

    font-size:28px;

}

.subtitle{

    margin-bottom:25px;

}

}

/*=====================================================
        Small Mobile
======================================================*/

@media(max-width:480px){

body{

    padding:15px;

}

.container{

    border-radius:18px;

}

.overlay h1{

    font-size:28px;

}

.overlay p{

    font-size:14px;

}

.toggle-buttons button{

    font-size:14px;

    padding:12px;

}

.input-group input{

    height:52px;

    font-size:14px;

}

.submit-btn{

    height:52px;

    font-size:15px;

}

}

/*=====================================================
            End CSS
======================================================*/