﻿/* Genel CSS */
* {
    font-family: -apple-system, BlinkMacSystemFont, "San Francisco", Helvetica, Arial, sans-serif;
    font-weight: 300;
    margin: 0;
    box-sizing: border-box;
}

html, body {
    height: 100%;
    width: 100%;
    margin: 0;
    display: flex;
    align-items: center; /* Dikey ortalama */
    justify-content: center; /* Yatay ortalama */
    background: #f3f2f2;
    overflow: hidden;
}

.session {
    display: flex;
    width: 100vw; /* Tam ekran genişlik */
    height: 100vh; /* Tam ekran yükseklik */
    margin: 0;
    background: #ffffff;
    overflow: hidden; /* Taşmaları engelle */
}

.left {
    flex: 1;
    background-image: url("https://images.pexels.com/photos/114979/pexels-photo-114979.jpeg?auto=compress&cs=tinysrgb&dpr=2&h=650&w=940");
    background-size: cover;
    background-position: center;
}

.log-in {
    flex: 1; 
    padding: 40px 30px;
    display: flex;
    flex-direction: column;
    justify-content: center; 
    align-items: center; 
    background: #ffffff;
    box-shadow: -3px 0px 6px rgba(0, 0, 0, 0.1); 
}

h4 {
    font-size: 24px;
    font-weight: 600;
    color: #000;
    opacity: .85;
    margin-bottom: 10px;
    text-align: center;
    word-wrap: break-word;
}

p {
    font-size: 14px;
    color: #333;
    margin-bottom: 20px;
    text-align: center;
}

.floating-label {
    position: relative;
    margin-bottom: 20px;
    width: 100%;
    max-width: 350px;
}

    .floating-label input {
        font-size: 16px;
        padding: 20px 10px;
        height: 56px;
        border: none;
        border-bottom: solid 1px rgba(0, 0, 0, .1);
        background: #fff;
        width: 100%;
        transition: all .3s linear;
    }

    .floating-label label {
        position: absolute;
        top: calc(50% - 7px);
        left: 10px;
        opacity: 0;
        transition: all .3s ease;
    }

    .floating-label input:focus {
        border-bottom: solid 1px rgb(182, 157, 230);
        outline: 0;
    }

button {
    width: 100%;
    max-width: 350px;
    border-radius: 24px;
    text-align: center;
    padding: 15px 40px;
    margin-top: 10px;
    background-color: rgb(182, 157, 230);
    color: #fff;
    font-size: 14px;
    font-weight: 500;
    border: none;
    transition: all .3s ease;
}

    button:hover {
        transform: translateY(-3px);
        box-shadow: 0 2px 6px -1px rgba(182, 157, 230, .65);
    }

/* Responsive Tasarım */
@media (max-width: 768px) {
    .session {
        flex-direction: column; /* Üst üste hizalama */
    }

    .left {
        height: 200px;
    }

    .log-in {
        width: 100%;
        padding: 20px;
        box-shadow: none;
    }

    h4 {
        font-size: 20px;
    }

    p {
        font-size: 13px;
    }

    .floating-label input {
        height: 48px;
        padding: 10px;
    }

    button {
        font-size: 12px;
        padding: 10px 20px;
    }
}

@media (max-width: 480px) {
    .session {
        flex-direction: column;
    }

    .left {
        height: 150px;
    }

    .log-in {
        padding: 15px;
    }

    h4 {
        font-size: 18px;
    }

    p {
        font-size: 12px;
    }

    .floating-label input {
        height: 40px;
        font-size: 14px;
    }

    button {
        padding: 8px 16px;
    }
}
